| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | abstract class EdmValue implements IValue, IDelayedValue |
||
| 20 | { |
||
| 21 | use EdmElementHelpers; |
||
| 22 | /** |
||
| 23 | * @var ITypeReference type of the value |
||
| 24 | */ |
||
| 25 | private $type; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Initializes a new instance of the EdmValue class. |
||
| 29 | * |
||
| 30 | * @param ITypeReference $type type of the value |
||
| 31 | */ |
||
| 32 | public function __construct(?ITypeReference $type) |
||
| 33 | { |
||
| 34 | $this->type = $type; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * @return ITypeReference gets the type of this value |
||
| 40 | */ |
||
| 41 | public function getType(): ?ITypeReference |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return ValueKind gets the kind of this value |
||
| 48 | */ |
||
| 49 | abstract public function getValueKind(): ValueKind; |
||
| 50 | |||
| 51 | public function getValue() |
||
| 56 |