Completed
Push — string-event-subscriptions ( e8cd90...1f8f4a )
by Peter
21:14
created

RestoreEvent::getTrashed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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\Model\Trash;
12
13
/**
14
 * RestoreEvent
15
 *
16
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
17
 */
18
class RestoreEvent extends ModelEvent
19
{
20
21
	private $trashed = null;
22
23
	/**
24
	 *
25
	 * @return Trash
26
	 */
27
	public function getTrashed()
28
	{
29
		return $this->trashed;
30
	}
31
32
	/**
33
	 *
34
	 * @param type $trashed
35
	 * @return RestoreEvent
36
	 */
37
	public function setTrashed($trashed)
38
	{
39
		$this->trashed = $trashed;
40
		return $this;
41
	}
42
43
}
44