DoctrineSchemaCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getSchemaTool() 0 4 1
1
<?php namespace Nord\Lumen\Doctrine\ORM\Console;
2
3
use Doctrine\ORM\EntityManager;
4
use Doctrine\ORM\Mapping\ClassMetadataFactory;
5
use Doctrine\ORM\Tools\SchemaTool;
6
7
abstract class DoctrineSchemaCommand extends DoctrineCommand
8
{
9
10
    /**
11
     * @var SchemaTool
12
     */
13
    private $schemaTool;
14
15
16
    /**
17
     * DoctrineCommand constructor.
18
     *
19
     * @param SchemaTool    $schemaTool
20
     * @param EntityManager $entityManager
21
     */
22
    public function __construct(SchemaTool $schemaTool, EntityManager $entityManager)
23
    {
24
        parent::__construct($entityManager);
25
26
        $this->schemaTool = $schemaTool;
27
    }
28
29
30
    /**
31
     * @return SchemaTool
32
     */
33
    protected function getSchemaTool()
34
    {
35
        return $this->schemaTool;
36
    }
37
}
38