| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ODataProperty |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The name of the property. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $name; |
||
| 20 | /** |
||
| 21 | * The property type name. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | public $typeName; |
||
| 26 | /** |
||
| 27 | * The property attribute extensions. |
||
| 28 | * |
||
| 29 | * @var XMLAttribute[] |
||
| 30 | */ |
||
| 31 | public $attributeExtensions; |
||
| 32 | /** |
||
| 33 | * The value of the property. |
||
| 34 | * |
||
| 35 | * @var string|ODataPropertyContent|ODataBagContent |
||
| 36 | */ |
||
| 37 | public $value; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * ODataProperty constructor. |
||
| 41 | * @param string $name |
||
| 42 | * @param string $typeName |
||
| 43 | * @param XMLAttribute[] $attributeExtensions |
||
| 44 | * @param ODataBagContent|ODataPropertyContent|string $value |
||
| 45 | */ |
||
| 46 | public function __construct(string $name = null, ?string $typeName = null, $value = null, array $attributeExtensions = null) |
||
| 47 | { |
||
| 48 | $this->name = $name; |
||
| 49 | $this->typeName = $typeName; |
||
| 50 | $this->attributeExtensions = $attributeExtensions; |
||
| 51 | $this->value = $value; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return bool|null |
||
| 56 | */ |
||
| 57 | public function isNull(): ?bool |
||
| 60 | } |
||
| 61 | } |
||
| 62 |