| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | final class ApiKey implements StringableContract |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Creates a new API token value object. |
||
| 16 | */ |
||
| 17 | 21 | private function __construct(public readonly string $apiKey) |
|
| 18 | { |
||
| 19 | // .. |
||
| 20 | 21 | } |
|
| 21 | |||
| 22 | 22 | public static function from(string $apiKey): self |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 21 | public function toString(): string |
|
| 36 | } |
||
| 37 | } |
||
| 38 |