| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class EdmDirectValueAnnotation extends EdmNamedElement implements IDirectValueAnnotation |
||
| 16 | { |
||
| 17 | private $namespaceUri; |
||
| 18 | private $value; |
||
| 19 | |||
| 20 | public function __construct(string $namespaceUri, string $name, $value = null) |
||
| 21 | { |
||
| 22 | parent::__construct($name); |
||
| 23 | $this->namespaceUri = $namespaceUri; |
||
| 24 | $this->value = $value; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string gets the namespace Uri of the annotation |
||
| 29 | */ |
||
| 30 | public function getNamespaceUri(): string |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return mixed gets the value of this annotation |
||
| 37 | */ |
||
| 38 | public function getValue() |
||
| 39 | { |
||
| 40 | return $this->value; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Gets the location of this element. |
||
| 45 | * |
||
| 46 | * @return ILocation|null the location of the element |
||
| 47 | */ |
||
| 48 | public function Location(): ?ILocation |
||
| 49 | { |
||
| 50 | // TODO: Implement Location() method. |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getErrors(): iterable |
||
| 56 | } |
||
| 57 | } |
||
| 58 |