Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class Entity |
||
8 | { |
||
9 | /** |
||
10 | * @param string|null $id Entity identifier |
||
11 | * @param string|null $type Entity type |
||
12 | * @param string|null $value Entity value |
||
13 | */ |
||
14 | 3 | public function __construct( |
|
15 | public ?string $id = null, |
||
16 | public ?string $type = null, |
||
17 | public ?string $value = null, |
||
18 | ) { |
||
19 | 3 | } |
|
20 | |||
21 | 3 | public static function fromAmazonRequest(array $amazonRequest): self |
|
27 | 3 | ); |
|
28 | } |
||
30 |