GpsLabPaginationBundle::getContainerExtension()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 2
1
<?php
2
3
/**
4
 * GpsLab component.
5
 *
6
 * @author    Peter Gribanov <[email protected]>
7
 * @copyright Copyright (c) 2011, Peter Gribanov
8
 * @license   http://opensource.org/licenses/MIT
9
 */
10
11
namespace GpsLab\Bundle\PaginationBundle;
12
13
use GpsLab\Bundle\PaginationBundle\DependencyInjection\GpsLabPaginationExtension;
14
use Symfony\Component\HttpKernel\Bundle\Bundle;
15
16
class GpsLabPaginationBundle extends Bundle
17
{
18
    /**
19
     * @return GpsLabPaginationExtension
20
     */
21 1
    public function getContainerExtension()
22
    {
23 1
        if (!($this->extension instanceof GpsLabPaginationExtension)) {
24 1
            $this->extension = new GpsLabPaginationExtension();
25
        }
26
27 1
        return $this->extension;
28
    }
29
}
30