| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 3 | protected function addConfigureParamsMethod(AbstractPhpStruct $struct, $body = '') { |
|
| 24 | 3 | $struct->addUseStatement('Symfony\\Component\\OptionsResolver\\OptionsResolver'); |
|
| 25 | 3 | $struct->setMethod(PhpMethod::create('configureParams') |
|
| 26 | 3 | ->addParameter(PhpParameter::create('resolver')->setType('OptionsResolver')) |
|
| 27 | 3 | ->setBody($body) |
|
| 28 | 3 | ); |
|
| 29 | 3 | } |
|
| 30 | |||
| 38 |