| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class EdmPropertyConstructor extends EdmElement implements IPropertyConstructor |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @inheritDoc |
||
| 19 | */ |
||
| 20 | public function getName(): string |
||
| 21 | { |
||
| 22 | return $this->name; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritDoc |
||
| 27 | */ |
||
| 28 | public function getValue(): IExpression |
||
| 29 | { |
||
| 30 | return $this->value; |
||
| 31 | } |
||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | private $name; |
||
| 36 | /** |
||
| 37 | * @var IExpression |
||
| 38 | */ |
||
| 39 | private $value; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Initializes a new instance of the EdmPropertyConstructor class. |
||
| 43 | * @param string $name Property name. |
||
| 44 | * @param IExpression $value Property value. |
||
| 45 | */ |
||
| 46 | public function __construct(string $name, IExpression $value) |
||
| 50 | } |
||
| 51 | |||
| 52 | } |