Completed
Push — compat-sf4 ( d499cf...2c998b )
by Kevin
01:40
created

IndexCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Zenstruck\ElasticaBundle\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
use Zenstruck\ElasticaBundle\Elastica\IndexManager;
7
8
/**
9
 * @author Kevin Bond <[email protected]>
10
 */
11
abstract class IndexCommand extends Command
12
{
13
    protected $indexManager;
14
15
    public function __construct(IndexManager $indexManager)
16
    {
17
        parent::__construct();
18
19
        $this->indexManager = $indexManager;
20
    }
21
}
22