Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class AbstractPheanstalkCommand extends Command |
||
10 | { |
||
11 | /** |
||
12 | * @var PheanstalkLocator |
||
13 | */ |
||
14 | protected $locator; |
||
15 | |||
16 | /** |
||
17 | * @param PheanstalkLocator $locator |
||
18 | */ |
||
19 | 4 | public function __construct(PheanstalkLocator $locator) |
|
20 | { |
||
21 | 4 | parent::__construct(); |
|
22 | |||
23 | 4 | $this->locator = $locator; |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param string $name |
||
28 | * |
||
29 | * @return PheanstalkInterface |
||
30 | */ |
||
31 | 4 | protected function getPheanstalk(&$name = null) |
|
48 | } |
||
49 | } |
||
50 |