Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| StatementService | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getStatementsForUser | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Domain\Statement\Service; |
| 6 | |
| 7 | use App\Domain\Statement\Repository\StatementRepository; |
| 8 | |
| 9 | final readonly class StatementService |
| 10 | { |
| 11 | public function __construct( |
| 12 | private StatementRepository $repository, |
| 13 | ) {} |
| 14 | |
| 15 | /** |
| 16 | * @return array<int, array<string, mixed>> |
| 17 | */ |
| 18 | public function getStatementsForUser(int $userId): array |
| 19 | { |
| 20 | return $this->repository->findByUserId($userId); |
| 21 | } |
| 22 | } |