| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class EdmValueAnnotation extends EdmVocabularyAnnotation implements IValueAnnotation |
||
| 22 | { |
||
| 23 | use ValueAnnotationHelpers; |
||
| 24 | |||
| 25 | private $value; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Initializes a new instance of the EdmValueAnnotation class. |
||
| 29 | * @param IVocabularyAnnotatable $target Element the annotation applies to. |
||
| 30 | * @param ITerm $term Term bound by the annotation. |
||
| 31 | * @param string $qualifier Qualifier used to discriminate between multiple bindings of the same property or type. |
||
| 32 | * @param IExpression $value Expression producing the value of the annotation. |
||
| 33 | */ |
||
| 34 | public function __construct(IVocabularyAnnotatable $target, ITerm $term, string $qualifier, IExpression $value) |
||
| 35 | { |
||
| 36 | parent::__construct($target, $term, $qualifier); |
||
| 37 | $this->value = $value; |
||
| 38 | |||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritDoc |
||
| 43 | */ |
||
| 44 | public function getValue(): IExpression |
||
| 47 | } |
||
| 48 | } |