Completed
Push — master ( 390e4e...b0ec12 )
by Taosikai
12:57
created

Command::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * Spike library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Spike\Server\Command;
7
8
use Spike\Server\Application;
9
use Symfony\Component\Console\Command\Command as BaseCommand;
10
11
class Command extends BaseCommand
12
{
13
    /**
14
     * @var Application
15
     */
16
    protected $server;
17
18
    public function __construct(Application $server)
19
    {
20
        $this->server = $server;
21
        parent::__construct(null);
22
    }
23
24
    /**
25
     * @return Application
26
     */
27
    public function getServer()
28
    {
29
        return $this->server;
30
    }
31
}