Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| AuditTrailQuery | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| all | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace LambdaTwelve\OneRecord\Server\Spi; |
| 6 | |
| 7 | use DateTimeImmutable; |
| 8 | use LambdaTwelve\OneRecord\Api\RequestStatus; |
| 9 | |
| 10 | /** |
| 11 | * The filters of GET /logistics-objects/{id}/audit-trail. |
| 12 | */ |
| 13 | final readonly class AuditTrailQuery |
| 14 | { |
| 15 | public function __construct( |
| 16 | public ?DateTimeImmutable $updatedFrom = null, |
| 17 | public ?DateTimeImmutable $updatedTo = null, |
| 18 | public ?RequestStatus $status = null, |
| 19 | ) {} |
| 20 | |
| 21 | public static function all(): self |
| 22 | { |
| 23 | return new self(); |
| 24 | } |
| 25 | } |