| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | abstract class AbstractEmptyCommand implements Command |
||
| 23 | { |
||
| 24 | use ImmutabilityBehaviour, ScalarPayloadBehaviour { |
||
| 25 | ScalarPayloadBehaviour::__call insteadof ImmutabilityBehaviour; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * AbstractEmptyCommand constructor. |
||
| 30 | */ |
||
| 31 | final protected function __construct() |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function getCommandType(): string |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | * |
||
| 47 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
| 48 | */ |
||
| 49 | final public static function reconstitute(array $parameters) |
||
| 50 | { |
||
| 51 | $commandClass = \get_called_class(); |
||
| 52 | |||
| 53 | return new $commandClass(); |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | * |
||
| 59 | * @return string[] |
||
| 60 | */ |
||
| 61 | final protected function getAllowedInterfaces(): array |
||
| 64 | } |
||
| 65 | } |
||
| 66 |