group; } /** * 开关 * @return boolean */ public function getIsOpen() { return $this->isOpen; } /** * 开关 * @return boolean */ public function isIsOpen() { return $this->isOpen; } public function requestRules() { return [ ['group', 'group', 'bail|string', Constants::STRING, null], ['isOpen', 'is_open', 'bail|boolean', Constants::BOOLEAN, null], ]; } public function responseRules() { return [ ]; } public function setResponse() { } }