| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 63 | 1 | public function tubes() |
|
| 64 | { |
||
| 65 | 1 | $tubes = []; |
|
| 66 | |||
| 67 | foreach ( |
||
| 68 | 1 | $this->server->dispatchCommand( |
|
| 69 | 1 | $this->commandFactory->create(CommandInterface::COMMAND_LIST_TUBES) |
|
| 70 | 1 | )->invoke()->getData() as $tubeName |
|
| 71 | 1 | ) { |
|
| 72 | 1 | $tubes[] = new Tube($tubeName, $this->server); |
|
| 73 | 1 | } |
|
| 74 | |||
| 75 | 1 | return $tubes; |
|
| 76 | } |
||
| 77 | |||
| 86 |