Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
10 | 16 | public function __construct( |
|
11 | private string $type, |
||
12 | private string $id, |
||
13 | private array $attributes = [] |
||
14 | ) { |
||
15 | 16 | if (empty(trim($type))) { |
|
16 | 2 | throw new InvalidArgumentException('Type of AuthorizationEntity cannot be empty.'); |
|
17 | } |
||
18 | 14 | if (empty(trim($id))) { |
|
19 | 2 | throw new InvalidArgumentException('ID of AuthorizationEntity cannot be empty.'); |
|
20 | } |
||
38 |