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