Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 3 | ||
Bugs | 2 | Features | 1 |
1 | <?php declare(strict_types = 1); |
||
10 | final class DeclareCommand extends Command |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var BunnyManager |
||
15 | */ |
||
16 | private $bunnyManager; |
||
17 | |||
18 | |||
19 | public function __construct(BunnyManager $bunnyManager) |
||
20 | { |
||
21 | parent::__construct(); |
||
22 | |||
23 | $this->bunnyManager = $bunnyManager; |
||
24 | } |
||
25 | |||
26 | |||
27 | protected function configure(): void |
||
28 | { |
||
29 | $this->setName('rabbitmq:declare') |
||
30 | ->setDescription('Creates all exchanges and queues.'); |
||
31 | } |
||
32 | |||
33 | |||
34 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
43 | } |
||
44 | |||
45 | } |
||
46 |