pages; } public function requestRules() { return [ ['pages', 'pages', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null], ]; } public function responseRules() { return [ ['page', 'page', PageDTO::class, Constants::MODEL, null], ['partners', 'partners', AdminPartnerDTO::class, Constants::MODEL | Constants::ARRAY, null], ]; } public function setResponse($page, $partners) { $this->page = $page; $this->partners = $partners; } }