Completed
Push — master ( 94e04a...7e753b )
by C
05:18
created

ProcessingCompletedEvent::__construct()   A

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 1
Bugs 0 Features 0
Metric Value
c 1
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
use League\Flysystem\Adapter\AbstractAdapter;
4
use Symfony\Component\EventDispatcher\Event;
5
6
class ProcessingCompletedEvent extends Event
7
{
8
9
	private $source = null;
10
11
	private $destination = null;
12
13
	private $sucess = null;
14
15 35
	public function __construct (AbstractAdapter $source, AbstractAdapter $destination, $sucess)
16
	{
17 35
		$this->source = $source;
18 35
		$this->destination = $destination;
19 35
		$this->sucess = $sucess;
20 35
	}
21
22 4
	public function getSource ()
23
	{
24 4
		return $this->source;
25
	}
26
27 5
	public function getDestination ()
28
	{
29 5
		return $this->destination;
30
	}
31
32 8
	public function isSuccess ()
33
	{
34 8
		return $this->sucess;
35
	}
36
}
37