| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 46.15% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait HasHeights |
||
| 14 | { |
||
| 15 | use DaftObjectTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return array<int, Distance|QuantitativeValue> |
||
| 19 | */ |
||
| 20 | 15 | public function GetHeight() : array |
|
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var array<int, Distance|QuantitativeValue> |
||
| 24 | */ |
||
| 25 | 15 | $out = TypeUtilities::ExpectRetrievedValueIsArray( |
|
| 26 | 15 | 'height', |
|
| 27 | 15 | $this->RetrievePropertyValueFromData('height'), |
|
|
|
|||
| 28 | 15 | static::class |
|
| 29 | ); |
||
| 30 | |||
| 31 | 15 | return $out; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array<int, Distance|QuantitativeValue> $value |
||
| 36 | */ |
||
| 37 | public function SetHeight(array $value) : void |
||
| 45 | ); |
||
| 46 | } |
||
| 48 |