Esempio n. 1
0
 public function __construct($reference, ValidationInterface $referenceValidation = null, $mandatory = true)
 {
     if (!is_scalar($reference) || '' === $reference) {
         throw new ComponentException('Invalid array key name');
     }
     parent::__construct($reference, $referenceValidation, $mandatory);
 }
Esempio n. 2
0
 public function __construct($reference, ValidationInterface $Validation = null, $mandatory = true)
 {
     if (!is_string($reference) || empty($reference)) {
         throw new ComponentException('Invalid attribute/property name');
     }
     parent::__construct($reference, $Validation, $mandatory);
 }