Bundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 8 2
1
<?php
2
/**
3
 * @link https://github.com/phpviet/symfony-number-to-words
4
 *
5
 * @copyright (c) PHP Viet
6
 * @license [MIT](https://opensource.org/licenses/MIT)
7
 */
8
9
namespace PHPViet\Symfony\NumberToWords;
10
11
use Symfony\Component\HttpKernel\Bundle\Bundle as BaseBundle;
12
use PHPViet\Symfony\NumberToWords\DependencyInjection\Extension;
13
14
/**
15
 * @author Vuong Minh <[email protected]>
16
 * @since 1.0.0
17
 */
18
class Bundle extends BaseBundle
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected $name = 'PHPVietNumberToWordsBundle';
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function getContainerExtension(): Extension
29
    {
30
        if (null === $this->extension) {
31
            $this->extension = new Extension();
32
        }
33
34
        return $this->extension;
35
    }
36
}
37