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
LogisticsObjectCreated
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\Rdf\Iri;
8use LambdaTwelve\OneRecord\Server\Spi\StoredObject;
9
10/**
11 * A logistics object came into existence on this server, through the PHP API
12 * or through POST /logistics-objects.
13 */
14final readonly class LogisticsObjectCreated
15{
16    public function __construct(
17        public StoredObject $stored,
18        public ?Iri $createdBy,
19    ) {}
20}