| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class PublisherCommand extends BaseCommand |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The name and signature of the console command. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $signature = ' |
||
| 25 | carrot-mq:publish |
||
| 26 | {publisher} |
||
| 27 | {--route= : Routing Key}'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The console command description. |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $description = 'Executes a publisher that reads data from STDIN'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Execute the console command. |
||
| 38 | * |
||
| 39 | * @return integer |
||
| 40 | * |
||
| 41 | * @throws \Exception |
||
| 42 | * @throws \Throwable |
||
| 43 | */ |
||
| 44 | public function handleInternal() |
||
| 77 |