| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | protected function buildInOutParameters(EndpointConfigurationInterface $config) |
||
| 59 | { |
||
| 60 | if (empty($this->take) || empty($this->return)) { |
||
| 61 | // TODO: think how to include command name in the exception text |
||
| 62 | throw EndpointBuildingException::fromBuilder('Both input and output MUST be specified', $this); |
||
| 63 | } |
||
| 64 | $config->set('inputType', $this->take); |
||
| 65 | $config->set('returnType', $this->return); |
||
| 66 | |||
| 67 | return $this; |
||
| 68 | } |
||
| 69 | } |
||
| 70 |