Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
17 | public function __construct(string $entity, string $action, array $properties) |
||
18 | { |
||
19 | $properties = \array_reduce($properties, function ($result, $property) { |
||
20 | $result[$property[Keyword::NAME]] = $property; |
||
21 | |||
22 | return $result; |
||
23 | }, []); |
||
24 | |||
25 | parent::__construct(\compact('entity', 'action', 'properties')); |
||
26 | } |
||
38 |