/** * Input construct. * * @param array $name * @param mixed $value * @param array|null $inputConfig * @throws InvalidArgumentException */ public function __construct($name, $value, $inputConfig) { if (is_null($name) || !is_string($name) || ($name = trim($name)) === '') { throw new InvalidArgumentException(''); } $this->name = $name; $this->value = $value; if (!is_array($inputConfig)) { $inputConfig = array(); } parent::__construct($inputConfig); }