ResponderBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 7 2
1
<?php
2
3
/**
4
 * This file is part of the bugloos/responder-bundle project.
5
 * (c) Bugloos <https://bugloos.com/>
6
 * For the full copyright and license information, please view
7
 * the LICENSE file that was distributed with this source code.
8
 */
9
10
namespace Bugloos\ResponderBundle;
11
12
use Bugloos\ResponderBundle\DependencyInjection\ResponderExtension;
13
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
14
use Symfony\Component\HttpKernel\Bundle\Bundle;
15
16
/**
17
 * @author Mojtaba Gheytasi <[email protected]>
18
 */
19
class ResponderBundle extends Bundle
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function getContainerExtension(): ?ExtensionInterface
25
    {
26
        if (null === $this->extension) {
27
            $this->extension = new ResponderExtension();
28
        }
29
30
        return $this->extension;
31
    }
32
}
33