| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 2 | protected function getClassAnalyzer() : ServiceDefinition |
|
| 23 | { |
||
| 24 | 2 | $builder = $this->getContainerBuilder(); |
|
| 25 | |||
| 26 | 2 | if ($builder->hasDefinition('knp.classAnalyzer')) { |
|
| 27 | 2 | return $builder->getDefinition('knp.classAnalyzer'); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | return $builder->addDefinition('knp.classAnalyzer') |
|
| 31 | 2 | ->setClass(ClassAnalyzer::class); |
|
| 32 | } |
||
| 33 | |||
| 60 |
This method has been deprecated.