Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
29 | 4 | protected function configure() |
|
30 | { |
||
31 | 4 | parent::configure(); |
|
32 | 4 | $this->setName('graviton:message:produce') |
|
33 | 4 | ->setDescription( |
|
34 | 4 | 'Puts a message onto the RabbitMQ channel.' |
|
35 | ) |
||
36 | 4 | ->addArgument( |
|
37 | 4 | 'message', |
|
38 | 4 | InputArgument::REQUIRED, |
|
39 | 4 | 'The message to be sent e.g. "bundle.resource.update"' |
|
40 | ) |
||
41 | 4 | ->addArgument( |
|
42 | 4 | 'data', |
|
43 | 4 | InputArgument::OPTIONAL, |
|
44 | 4 | 'JSON formatted data to send to with the message.', |
|
45 | 4 | '{}' |
|
46 | ); |
||
47 | 4 | } |
|
48 | |||
65 |