Completed
Push — develop ( 4cea88...99fd65 )
by Javier
03:46
created

XgcCarbonBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
ccs 3
cts 3
cp 1
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 1
    public function getExtension()
19
    {
20 1
        $this->extension = $this->extension ?? new XgcCarbonExtension();
21 1
        return $this->extension;
22
    }
23
}
24