page; } /** * @return int */ public function getUnread() { return $this->unread; } public function requestRules() { return [ ['page', 'page', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null], ['unread', 'unread', 'bail|integer', Constants::INTEGER, null], ]; } public function responseRules() { return [ ['result', 'result', 'bail', null, null], ]; } public function setResponse($result) { $this->result = $result; } }