示例#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);
     }
 }