예제 #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);
     }
 }
예제 #2
0
파일: Scope.php 프로젝트: phspring/common
 public function __construct(array $values)
 {
     if (!array_key_exists('value', $values)) {
         $values['values'] = self::SINGLETON;
     }
     parent::__construct($values);
 }
예제 #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);
     }
 }
예제 #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);
     }
 }