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

XgcCarbonBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getExtension() 0 4 1
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