| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace LaravelUi5\OData\Edm\Annotation; |
| 6: | |
| 7: | use LaravelUi5\OData\Edm\Contracts\Annotation\AnnotationInterface; |
| 8: | use LaravelUi5\OData\Edm\Contracts\Annotation\AnnotationValueInterface; |
| 9: | |
| 10: | final readonly class Annotation implements AnnotationInterface |
| 11: | { |
| 12: | public function __construct( |
| 13: | private string $term, |
| 14: | private ?string $qualifier = null, |
| 15: | private ?AnnotationValueInterface $value = null, |
| 16: | ) {} |
| 17: | |
| 18: | public function getTerm(): string |
| 19: | { |
| 20: | return $this->term; |
| 21: | } |
| 22: | |
| 23: | public function getQualifier(): ?string |
| 24: | { |
| 25: | return $this->qualifier; |
| 26: | } |
| 27: | |
| 28: | public function getValue(): ?AnnotationValueInterface |
| 29: | { |
| 30: | return $this->value; |
| 31: | } |
| 32: | } |
| 33: | |