PHCoreBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSupportedDrivers() 0 6 1
A getModelNamespace() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PH\Bundle\CoreBundle;
6
7
use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
8
use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
9
10
final class PHCoreBundle extends AbstractResourceBundle
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function getSupportedDrivers(): array
16
    {
17
        return [
18
            SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
19
        ];
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function getModelNamespace(): ?string
26
    {
27
        return 'PH\Component\Core\Model';
28
    }
29
}
30