key; } public function requestRules() { return [ ['key', 'key', 'bail|string', Constants::STRING, null], ]; } public function responseRules() { return [ ['result', 'result', 'bail', null, null], ]; } public function setResponse($result) { $this->result = $result; } }