Completed
Push — master ( c1eea9...0ced1c )
by Mickael
04:22
created

AbstractGearmanCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEnvironment() 0 5 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
18
/**
19
 * Class AbstractGearmanCommand
20
 */
21
abstract class AbstractGearmanCommand extends Command
22
{
23
    /**
24
     * @var string
25
     *
26
     * Environment
27
     */
28
    protected $environment;
29
30
    /**
31
     * Set environment
32
     *
33
     * @param string $environment Environment
34
     *
35
     * @return AbstractGearmanCommand self Object
36
     */
37
    public function setEnvironment($environment)
38
    {
39
        $this->environment = $environment;
40
        return $this;
41
    }
42
}
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...
43