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