'Yes',//yes 'no' => 'No',//NO ]; public function __construct($config = []) { parent::__construct($config); } public function result(){ $value = $this->getValue(); return ($value == 1) ? $this->label['yes'] : $this->label['no']; } }