Completed
Push — master ( ed1616...0c479b )
by Jakub
04:00 queued 01:11
created

Req2CmdBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 8 2
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
    /**
13
     * @codeCoverageIgnore
14
     */
15
    public function getContainerExtension(): Extension
16
    {
17
        if ($this->extension === null) {
18
            $this->extension = new Req2CmdExtension();
19
        }
20
21
        return $this->extension;
22
    }
23
24
}
25