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