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