| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | class Name extends Text |
||
| 34 | { |
||
| 35 | /** |
||
| 36 | * Create a new instance of the value object. |
||
| 37 | * |
||
| 38 | * @param string|Stringable $value |
||
| 39 | */ |
||
| 40 | 37 | public function __construct(string|Stringable $value) |
|
| 41 | { |
||
| 42 | 37 | parent::__construct($value); |
|
| 43 | |||
| 44 | 32 | $this->sanitize(); |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Sanitize the value. |
||
| 49 | * |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | 10 | protected function sanitize(): void |
|
| 55 | } |
||
| 56 | } |
||
| 57 |