Completed
Push — master ( 91618d...0ad795 )
by Peter
47:17 queued 22:32
created

TrashEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 30
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTrash() 0 4 1
A setTrash() 0 5 1
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace Maslosoft\Mangan\Events;
10
11
use Maslosoft\Mangan\Events\ModelEvent;
12
use Maslosoft\Mangan\Events\TrashEvent;
13
use Maslosoft\Mangan\Interfaces\TrashInterface;
14
15
/**
16
 * TrashEvent
17
 *
18
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
19
 */
20
class TrashEvent extends ModelEvent
21
{
22
23
	/**
24
	 *
25
	 * @var TrashInterface
26
	 */
27
	private $trash = null;
28
29
	/**
30
	 * Get trash model used to store trashed data.
31
	 * @return TrashInterface
32
	 */
33
	public function getTrash()
34
	{
35
		return $this->trash;
36
	}
37
38
	/**
39
	 * Set trash model used to store trashed data.
40
	 * @param TrashInterface $trash
41
	 * @return TrashEvent
42
	 */
43
	public function setTrash(TrashInterface $trash)
44
	{
45
		$this->trash = $trash;
46
		return $this;
47
	}
48
49
}
50