AbstractCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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