Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
65 | public function execute(string $command) |
||
66 | { |
||
67 | $request = new Request($command); |
||
68 | $this->lastResponse = $this->routerClient->sendSync($request); |
||
69 | |||
70 | $list = []; |
||
71 | /** @var Response $response */ |
||
72 | foreach ($this->lastResponse as $response) { |
||
73 | if ($response->getType() == Response::TYPE_DATA) { |
||
74 | $list[] = $response->getIterator(); |
||
75 | } |
||
76 | } |
||
77 | |||
78 | return $list; |
||
79 | } |
||
80 | |||
89 |