Command   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 62.5%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 26
ccs 5
cts 8
cp 0.625
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getCommand() 0 4 1
A setCommand() 0 4 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