Completed
Push — master ( 99fd04...6a3a72 )
by Jakub
02:38
created

Req2CmdBundle::getContainerExtension()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Eps\Req2CmdBundle;
5
6
use Eps\Req2CmdBundle\DependencyInjection\Req2CmdExtension;
7
use Symfony\Component\DependencyInjection\Extension\Extension;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
final class Req2CmdBundle extends Bundle
11
{
12
    public function getContainerExtension(): Extension
13
    {
14
        if ($this->extension === null) {
15
            $this->extension = new Req2CmdExtension();
16
        }
17
18
        return $this->extension;
19
    }
20
}
21