| Conditions | 4 |
| Paths | 6 |
| Total Lines | 23 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function createService( |
||
| 38 | ContainerBuilder $container, |
||
| 39 | $id, |
||
| 40 | $class, |
||
| 41 | $argumentList = [], |
||
| 42 | $tagList = [], |
||
| 43 | 6 | $addMethodCallList = [] |
|
| 44 | ) { |
||
| 45 | 6 | $definition = new Definition($class, $argumentList); |
|
| 46 | 4 | ||
| 47 | 6 | foreach ($tagList as $tag) { |
|
| 48 | $definition->addTag($tag); |
||
| 49 | 6 | } |
|
| 50 | 2 | ||
| 51 | 6 | foreach ($addMethodCallList as $methodCall) { |
|
| 52 | $args = isset($methodCall[1]) ? $methodCall[1] : []; |
||
| 53 | 6 | $definition->addMethodCall($methodCall[0], $args); |
|
| 54 | 6 | } |
|
| 55 | |||
| 56 | $container->setDefinition($this->buildContainerId($id), $definition); |
||
| 57 | |||
| 58 | return $definition; |
||
| 59 | } |
||
| 60 | } |
||
| 61 |