Exemplo n.º 1
0
 public function __construct(array $values)
 {
     parent::__construct($values);
     if (!(is_int($this->value) || $this->value instanceof IExpression)) {
         throw new UnexpectedValueException("Annotation value is not supported", ErrorCode::EXPRESSIONNOT_VALUE_IS_NOT_SUPPORTED);
     }
 }
Exemplo n.º 2
0
 public function __construct(array $values)
 {
     if (!array_key_exists('value', $values)) {
         $values['values'] = self::SINGLETON;
     }
     parent::__construct($values);
 }
Exemplo n.º 3
0
 public function __construct(array $values)
 {
     parent::__construct($values);
     if (!class_exists($this->value)) {
         throw new UnexpectedValueException("Exception class is not available - {$this->value}", ErrorCode::EXCEPTIONHANDLER_EXCEPTION_CLASS_IS_NOT_AVAILABLE);
     }
 }
Exemplo n.º 4
0
 public function __construct(array $values)
 {
     parent::__construct($values);
     if (!is_string($this->value)) {
         throw new UnexpectedValueException("Unsupported annotation value", ErrorCode::QUALIFIER_UNSUPPORTED_ANNOTATION_VALUE);
     }
 }