| 1 | <?php | ||
| 12 | abstract class BaseId extends BaseScalar | ||
| 13 | { | ||
| 14 | protected $value; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * BaseId constructor. | ||
| 18 | * | ||
| 19 | * @param null|string $id | ||
| 20 | */ | ||
| 21 | 12 | public function __construct(?string $id = null) | |
| 25 | |||
| 26 | 12 | private function setValue(?string $id): void | |
| 36 | |||
| 37 | /** | ||
| 38 |      * {@inheritdoc} | ||
| 39 | * | ||
| 40 | * @return string | ||
| 41 | */ | ||
| 42 | 9 | public function value(): string | |
| 46 | |||
| 47 | /** | ||
| 48 | * @return string | ||
| 49 | */ | ||
| 50 | 3 | public function __toString(): string | |
| 54 | } | ||
| 55 |