Completed
Push — master ( c4223d...e3af10 )
by Nikita
03:25
created

Command::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Taisiya\CoreBundle\Console\Command;
4
5
use Taisiya\CoreBundle\App;
6
7
abstract class Command extends \Symfony\Component\Console\Command\Command
8
{
9
    /**
10
     * @var App
11
     */
12
    private $app;
13
14
    public function __construct(App $app, $name = null)
15
    {
16
        parent::__construct($name);
17
18
        $this->app = $app;
19
    }
20
21
    /**
22
     * @return App
23
     */
24
    public function getApp(): App
25
    {
26
        return $this->app;
27
    }
28
}
29