| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 8 | public function __construct($command, $name = null, $queueName = null) |
|
| 34 | 8 | { |
|
| 35 | $this->command = $command; |
||
| 36 | |||
| 37 | if (is_null($name)) { |
||
| 38 | $className = get_class($command); |
||
| 39 | $name = substr($className, strrpos($className, '\\') + 1); |
||
| 40 | } |
||
| 41 | 4 | ||
| 42 | if (null === $queueName) { |
||
| 43 | 4 | $queueName = Util::guessQueue(new PlainMessage($name)); |
|
| 44 | |||
| 45 | } |
||
| 46 | $this->name = $name; |
||
| 47 | $this->queueName = $queueName; |
||
| 48 | } |
||
| 49 | 4 | ||
| 76 |