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
ChangeResult
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\Change;
6
7use LambdaTwelve\OneRecord\Model\LogisticsObject;
8
9/**
10 * The outcome of applying a Change: the new version of the object (the
11 * caller assigns its revision) and the properties of the object itself that
12 * changed, which notifications report in api:hasChangedProperty.
13 */
14final readonly class ChangeResult
15{
16    /**
17     * @param list<string> $changedProperties property IRIs
18     */
19    public function __construct(
20        public LogisticsObject $object,
21        public array $changedProperties,
22    ) {}
23}