| 1 | <?php |
||
| 7 | class AttributeValue extends ValueObject |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | protected $dataInt; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var float |
||
| 16 | */ |
||
| 17 | protected $dataFloat; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $dataText; |
||
| 23 | |||
| 24 | public function __construct(int $dataInt, float $dataFloat, string $dataText) |
||
| 30 | |||
| 31 | public function __toString() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getDataInt(): int |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return float |
||
| 58 | */ |
||
| 59 | public function getDataFloat(): float |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getDataText(): string |
||
| 71 | } |
||
| 72 |