| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class AllowedCommandsContainer |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | private $allowedCommands; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array $allowedCommands |
||
| 16 | */ |
||
| 17 | public function __construct(array $allowedCommands = []) |
||
| 18 | { |
||
| 19 | $this->allowedCommands = $allowedCommands; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getAllowedCommands(): array |
||
| 25 | } |
||
| 26 | |||
| 27 | public function hasCommand(string $commandName): bool |
||
| 30 | } |
||
| 31 | } |
||
| 32 |