ProcessingCompletedEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
crap 1
1
<?php
2
namespace Tartana\Event;
3
4
use League\Flysystem\Adapter\AbstractAdapter;
5
use Symfony\Component\EventDispatcher\Event;
6
7
class ProcessingCompletedEvent extends Event
8
{
9
10
	private $source = null;
11
12
	private $destination = null;
13
14
	private $sucess = null;
15
16 45
	public function __construct(AbstractAdapter $source, AbstractAdapter $destination, $sucess)
17
	{
18 45
		$this->source      = $source;
19 45
		$this->destination = $destination;
20 45
		$this->sucess      = $sucess;
21 45
	}
22
23 4
	public function getSource()
24
	{
25 4
		return $this->source;
26
	}
27
28 5
	public function getDestination()
29
	{
30 5
		return $this->destination;
31
	}
32
33 11
	public function isSuccess()
34
	{
35 11
		return $this->sucess;
36
	}
37
}
38