Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | abstract class AbstractCommand implements Command |
||
23 | { |
||
24 | use ImmutabilityBehaviour, ScalarPayloadBehaviour { |
||
25 | ScalarPayloadBehaviour::__call insteadof ImmutabilityBehaviour; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * AbstractCommand constructor. |
||
30 | * |
||
31 | * @param mixed[] $parameters |
||
32 | */ |
||
33 | final protected function __construct(array $parameters) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getCommandType(): string |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | final public static function reconstitute(array $parameters) |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | * |
||
61 | * @return string[] |
||
62 | */ |
||
63 | final protected function getAllowedInterfaces(): array |
||
68 |