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) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | final public static function reconstitute(array $parameters) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | * |
||
51 | * @return string[] |
||
52 | */ |
||
53 | final protected function getAllowedInterfaces(): array |
||
57 | } |
||
58 |