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); } }
public function __construct(array $values) { if (!array_key_exists('value', $values)) { $values['values'] = self::SINGLETON; } parent::__construct($values); }
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); } }
public function __construct(array $values) { parent::__construct($values); if (!is_string($this->value)) { throw new UnexpectedValueException("Unsupported annotation value", ErrorCode::QUALIFIER_UNSUPPORTED_ANNOTATION_VALUE); } }