Completed
Push — master ( 1e1aac...d6bf2c )
by C
05:36
created

CommandEvent::setCommand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace Tartana\Event;
3
use Symfony\Component\EventDispatcher\Event;
4
5
class CommandEvent extends Event
6
{
7
8
	private $command = null;
9
10 29
	public function __construct ($command)
11
	{
12 29
		$this->command = $command;
13 29
	}
14
15 29
	public function getCommand ()
16
	{
17 29
		return $this->command;
18
	}
19
20 3
	public function setCommand ($command)
21
	{
22 3
		$this->command = $command;
23 3
	}
24
}
25