| Total Complexity | 5 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | class EdmDirectValueAnnotationBinding implements IDirectValueAnnotationBinding |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var IEdmElement |
||
| 19 | */ |
||
| 20 | private $element; |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $namespaceUri; |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $name; |
||
| 29 | /** |
||
| 30 | * @var mixed |
||
| 31 | */ |
||
| 32 | private $value; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Initializes a new instance of the EdmDirectValueAnnotationBinding class. |
||
| 36 | * @param IEdmElement $element element to which the annotation is attached |
||
| 37 | * @param string $namespaceUri namespace URI of the annotation |
||
| 38 | * @param string $name name of the annotation within the namespace |
||
| 39 | * @param mixed $value Value of the annotation |
||
| 40 | */ |
||
| 41 | public function __construct(IEdmElement $element, string $namespaceUri, string $name, $value) |
||
| 42 | { |
||
| 43 | $this->element = $element; |
||
| 44 | $this->namespaceUri = $namespaceUri; |
||
| 45 | $this->name = $name; |
||
| 46 | $this->value = $value; |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function getElement(): IEdmElement |
||
| 54 | { |
||
| 55 | return $this->element; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function getNamespaceUri(): string |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function getName(): string |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * {@inheritdoc} |
||
| 76 | */ |
||
| 77 | public function getValue() |
||
| 82 |