Completed
Push — master ( 61c1b2...61092d )
by Javier
08:21
created

XgcCarbonBundle::getExtension()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Xgc\CarbonBundle;
5
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Xgc\CarbonBundle\DependencyInjection\XgcCarbonExtension;
8
9
/**
10
 * Class XgcCarbonBundle
11
 * @package Xgc\XgcCarbonBundle
12
 */
13
class XgcCarbonBundle extends Bundle
14
{
15
    /**
16
     * @return mixed
17
     */
18
    public function getExtension()
19
    {
20
        $this->extension = $this->extension ?? new XgcCarbonExtension();
21
        return $this->extension;
22
    }
23
}
24