Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
LogisticsEventReceived
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace LambdaTwelve\OneRecord\Server\Event;
6
7use LambdaTwelve\OneRecord\Model\LogisticsEvent;
8use LambdaTwelve\OneRecord\Server\Spi\Agent;
9
10/**
11 * A partner posted a logistics event (a status update) on one of this
12 * server's objects. Hosts turn these into whatever their business needs.
13 */
14final readonly class LogisticsEventReceived
15{
16    public function __construct(
17        public LogisticsEvent $event,
18        public Agent $postedBy,
19    ) {}
20}