Completed
Push — master ( c8652a...49e598 )
by C
04:38
created

ChangeDownloadState::getDownloads()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace Tartana\Domain\Command;
3
4
class ChangeDownloadState
5
{
6
7
	private $downloads = null;
8
9
	private $fromState = null;
10
11
	private $toState = null;
12
13 19
	public function __construct (array $downloads, $fromState, $toState)
14
	{
15 19
		$this->downloads = $downloads;
16 19
		$this->fromState = $fromState;
17 19
		$this->toState = $toState;
18 19
	}
19
20
	/**
21
	 *
22
	 * @return \Tartana\Entity\Download[]
23
	 */
24 13
	public function getDownloads ()
25
	{
26 13
		return $this->downloads;
27
	}
28
29 2
	public function getFromState ()
30
	{
31 2
		return $this->fromState;
32
	}
33
34 15
	public function getToState ()
35
	{
36 15
		return $this->toState;
37
	}
38
}