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