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

AbstractGearmanCommand::setEnvironment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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