function __construct(Checkbox $field) { $this->field = $field; $this->attribs = $field->GetHtmlAttributes(); }