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

ProcessingCompletedEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 31
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getSource() 0 4 1
A getDestination() 0 4 1
A isSuccess() 0 4 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