| | |
| | | } |
| | | trait widthTrait { |
| | | /** |
| | | * @var Distance|QuantitativeValue The width of the item. |
| | | * @var Distance|QuantitativeValue|string The width of the item. |
| | | */ |
| | | protected Distance|QuantitativeValue $width; |
| | | protected Distance|QuantitativeValue|string $width; |
| | | |
| | | public function getWidth():Distance|QuantitativeValue|null |
| | | public function getWidth():Distance|QuantitativeValue|string|null |
| | | { |
| | | return $this->width??null; |
| | | } |
| | | public function setWidth(Distance|QuantitativeValue $width):void |
| | | public function setWidth(Distance|QuantitativeValue|string $width):void |
| | | { |
| | | $this->width = $width; |
| | | } |