public function setValue($newValue) { if (empty($newValue)) { throw new \InvalidArgumentException('Login can`t be empty'); } parent::setValue($newValue); }
public function __construct($fieldName, $fieldInfo, $Value) { if (!isset($fieldInfo['hash'])) { throw new InvalidArgumentException('Security hash field not set'); } parent::__construct($fieldName, $fieldInfo, $Value); }