GendoriaCommandQueueDoctrineDriverBundle   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 8 3
1
<?php
2
3
namespace Gendoria\CommandQueueDoctrineDriverBundle;
4
5
use Gendoria\CommandQueueDoctrineDriverBundle\DependencyInjection\GendoriaCommandQueueDoctrineDriverExtension;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
8
/**
9
 * RabbitMQ integration bundle for Gendoria Command Queue.
10
 */
11
class GendoriaCommandQueueDoctrineDriverBundle extends Bundle
12
{
13
    /**
14
     * Get bundle extension instance.
15
     *
16
     * @return GendoriaCommandQueueDoctrineDriverExtension
17
     */
18 1
    public function getContainerExtension()
19
    {
20 1
        if (null === $this->extension || false === $this->extension) {
21 1
            $this->extension = new GendoriaCommandQueueDoctrineDriverExtension();
22 1
        }
23
24 1
        return $this->extension;
25
    }
26
}
27