/** * If a value is set, the 'checked' attribute should be added. * * @param mixed $value */ public function setValue($value) { parent::setValue($value); $this->attributes['checked'] = true; }