/** * Sets the value of the checkbox * * @param mixed $value * * @return mixed */ public function setValue($value) { $this->checked = null; return parent::setValue($value); }
/** * Adds the value to the select * * Mainly it removes the entry in the attributes list * * @param mixed $value * * @return $this|self|Select */ public function setValue($value) { parent::setValue($value); $this->getAttributes()->remove('value'); return $this; }