| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 18 |
| 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 | 2 | 'Puts a message onto the RabbitMQ channel.' |
|
| 35 | 2 | ) |
|
| 36 | 4 | ->addArgument( |
|
| 37 | 4 | 'message', |
|
| 38 | 4 | InputArgument::REQUIRED, |
|
| 39 | 2 | 'The message to be sent e.g. "bundle.resource.update"' |
|
| 40 | 2 | ) |
|
| 41 | 4 | ->addArgument( |
|
| 42 | 4 | 'data', |
|
| 43 | 4 | InputArgument::OPTIONAL, |
|
| 44 | 4 | 'JSON formatted data to send to with the message.', |
|
| 45 | 2 | '{}' |
|
| 46 | 2 | ); |
|
| 47 | 4 | } |
|
| 48 | |||
| 65 |