Completed
Pull Request — develop (#39)
by Sam
02:08
created

AbstractCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Nord\Lumen\Elasticsearch\Console;
4
5
use Illuminate\Console\Command;
6
use Nord\Lumen\Elasticsearch\Contracts\ElasticsearchServiceContract;
7
8
/**
9
 * Class AbstractCommand
10
 * @package Nord\Lumen\Elasticsearch\Console
11
 */
12
abstract class AbstractCommand extends Command
13
{
14
15
    /**
16
     * @var ElasticsearchServiceContract
17
     */
18
    protected $elasticsearchService;
19
20
    /**
21
     * AbstractMigrationCommand constructor.
22
     *
23
     * @param ElasticsearchServiceContract $elasticsearchService
24
     */
25
    public function __construct(ElasticsearchServiceContract $elasticsearchService)
26
    {
27
        parent::__construct();
28
29
        $this->elasticsearchService = $elasticsearchService;
30
    }
31
}
32