/** * * @param Field $field * @param string $type {checkbox, option} */ public function __construct(Field $field, $type) { $this->field = $field; $this->options = new ArrayIterator((array) $field->getOptions()); $this->type = $type; }