| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | protected function setCommandPTS(Proxy $cmd, string $class, array $names) : Proxy |
||
| 24 | { |
||
| 25 | $pts = $this->getCommandPTS($class, $names); |
||
| 26 | |||
| 27 | foreach ($pts as $name => $value) { |
||
| 28 | $setter = sprintf('set%s', ucfirst($name)); |
||
| 29 | if (method_exists($cmd, $setter)) { |
||
| 30 | $cmd->$setter($value); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | if (method_exists($cmd->getCommand(), 'configure')) { |
||
| 35 | call_user_func_array([$cmd->getCommand(), 'configure'], [new Configure($cmd)]); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $cmd; |
||
| 39 | } |
||
| 59 |