Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| GeneratedApiKey | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getApiKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getRawApiKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Dto\Result; |
| 4 | |
| 5 | use App\Entity\ApiKey; |
| 6 | |
| 7 | readonly class GeneratedApiKey |
| 8 | { |
| 9 | public function __construct(private ApiKey $apiKey, private string $rawApiKey) |
| 10 | { |
| 11 | } |
| 12 | |
| 13 | public function getApiKey(): ApiKey |
| 14 | { |
| 15 | return $this->apiKey; |
| 16 | } |
| 17 | |
| 18 | public function getRawApiKey(): string |
| 19 | { |
| 20 | return $this->rawApiKey; |
| 21 | } |
| 22 | } |