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

RestoreEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTrashed() 0 4 1
A setTrashed() 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\Addendum\Interfaces\AnnotatedInterface;
12
use Maslosoft\Mangan\Model\Trash;
13
14
/**
15
 * RestoreEvent
16
 *
17
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
18
 */
19
class RestoreEvent extends ModelEvent
20
{
21
22
	/**
23
	 * Trashed item instance
24
	 * @var AnnotatedInterface
25
	 */
26
	private $trashed = null;
27
28
	/**
29
	 *
30
	 * @return Trash
31
	 */
32
	public function getTrashed()
33
	{
34
		return $this->trashed;
35
	}
36
37
	/**
38
	 *
39
	 * @param AnnotatedInterface $trashed
40
	 * @return RestoreEvent
41
	 */
42
	public function setTrashed(AnnotatedInterface $trashed)
43
	{
44
		$this->trashed = $trashed;
45
		return $this;
46
	}
47
48
}
49