Command::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php namespace Mistletoe;
2
3
/**
4
 * Class Command
5
 * @package Mistletoe
6
 */
7
class Command
8
{
9
    private $command;
10
11 2
    public function __construct($command)
12
    {
13
14 2
        $this->command = $command;
15 2
    }
16
17
    /**
18
     * @return mixed
19
     */
20 1
    public function getCommand()
21
    {
22 1
        return $this->command;
23
    }
24
25
    /**
26
     * @param mixed $command
27
     */
28
    public function setCommand($command)
29
    {
30
        $this->command = $command;
31
    }
32
}
33