DoctrineSchemaCommand::getSchemaTool()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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