/** * Handler constructor. * @param FormInterface $form * @param callable|\Closure $process * @param string $name * @param string $value */ function __construct(FormInterface $form, $process, $name = 'abstractHandler', $value = 'Абстрактное действие') { parent::__construct($name, $value); $this->setParent($form); $this->attribute('type', 'submit'); $this->attribute('value', $value); $this->attribute('id', $name); $this->setProcess($process); }
/** * AbstractField constructor. * @param string $name * @param mixed $value * @param string $title */ public function __construct($name, $value, $title = '') { parent::__construct($name, $title); $this->setValue($value); $this->validators = new ObjectList(['NewInventor\\Form\\Validator\\ValidatorInterface']); }
/** * AbstractBlock constructor. * * @param string $name * @param string $title */ public function __construct($name, $title = '') { parent::__construct($name, $title); }