public function ruleLimit() { if (in_array($this->datatype, array('int', 'str'))) { return; } elseif ($this->datatype == 'bool') { return 1; } // TODO: implement for choice 'ch' response type }