Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | protected function buildInOutParameters(EndpointConfigurationInterface $config) |
||
47 | { |
||
48 | if (empty($this->take) || empty($this->return)) { |
||
49 | // TODO: think how to include command name in the exception text |
||
50 | throw EndpointBuildingException::fromBuilder('Both input and output MUST be specified', $this); |
||
51 | } |
||
52 | $config->set('take', $this->take); |
||
53 | $config->set('return', $this->return); |
||
54 | |||
55 | return $this; |
||
56 | } |
||
57 | } |
||
58 |