public function setValue($value)
 {
     if ($value == 1) {
         $this->addAttributes('checked', 'checked');
     }
     return parent::setValue($value);
 }
 public function addField(Field $fields)
 {
     $this->fields[$fields->getName()] = $fields;
     return $this;
 }
 public function __construct($name, $type = null, $value = null)
 {
     parent::__construct($name, null, $value);
     $this->type = $type != null ? $type : $this->type;
 }