getContainerExtension()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 4
nc 2
nop 0
crap 3
1
<?php
2
3
namespace Gendoria\CommandQueueRabbitMqDriverBundle;
4
5
use Gendoria\CommandQueueRabbitMqDriverBundle\DependencyInjection\GendoriaCommandQueueRabbitMqDriverExtension;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
8
/**
9
 * RabbitMQ integration bundle for Gendoria Command Queue.
10
 */
11
class GendoriaCommandQueueRabbitMqDriverBundle extends Bundle
12
{
13
    /**
14
     * Get bundle extension instance.
15
     *
16
     * @return GendoriaCommandQueueRabbitMqDriverExtension
17
     */
18 1
    public function getContainerExtension()
19
    {
20 1
        if (null === $this->extension || false === $this->extension) {
21 1
            $this->extension = new GendoriaCommandQueueRabbitMqDriverExtension();
22 1
        }
23
24 1
        return $this->extension;
25
    }
26
}
27