ProcessingCompletedEvent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
c 0
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
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