Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ReturnBookCommand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | // ╔════════════════════════════════════════════════════════════╗ |
| 4 | // ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║ |
| 5 | // ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com> ║ |
| 6 | // ╚════════════════════════════════════════════════════════════╝ |
| 7 | |
| 8 | declare(strict_types=1); |
| 9 | |
| 10 | namespace AppDemo\Loan\Application\Command; |
| 11 | |
| 12 | use DateTimeImmutable; |
| 13 | use Phexium\Application\Command\CommandInterface; |
| 14 | use Phexium\Domain\Id\IdInterface; |
| 15 | |
| 16 | final readonly class ReturnBookCommand implements CommandInterface |
| 17 | { |
| 18 | public function __construct( |
| 19 | public IdInterface $loanId, |
| 20 | public IdInterface $userId, |
| 21 | public DateTimeImmutable $returnedAt |
| 22 | ) {} |
| 23 | } |