Completed
Push — master ( 355f41...200862 )
by Mickael
06:25
created

AbstractGearmanCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 23
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setKernel() 0 6 1
1
<?php
2
3
/**
4
 * Gearman Bundle for Symfony2 / Symfony3
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * Feel free to edit as you please, and have fun.
10
 *
11
 * @author Marc Morera <[email protected]>
12
 */
13
14
namespace Mkk\GearmanBundle\Command\Abstracts;
15
16
use Symfony\Component\Console\Command\Command;
17
use Symfony\Component\HttpKernel\KernelInterface;
18
19
/**
20
 * Class AbstractGearmanCommand
21
 */
22
abstract class AbstractGearmanCommand extends Command
23
{
24
    /**
25
     * @var KernelInterface
26
     *
27
     * Kernel
28
     */
29
    protected $kernel;
30
31
    /**
32
     * Set kernel
33
     *
34
     * @param KernelInterface $kernel Kernel
35
     *
36
     * @return AbstractGearmanCommand self Object
37
     */
38 24
    public function setKernel(KernelInterface $kernel)
39
    {
40 24
        $this->kernel = $kernel;
41
42 24
        return $this;
43
    }
44
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
45