| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | abstract class AbstractStringValueObject |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $value; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $type; |
||
| 14 | |||
| 15 | public function __construct(string $value, string $type) |
||
| 16 | { |
||
| 17 | $this->value = $value; |
||
| 18 | $this->type = $type; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getValue(): string |
||
| 22 | { |
||
| 23 | return $this->value; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function equal(self $object): bool |
||
| 30 | } |
||
| 31 | } |
||
| 32 |