Completed
Push — string-event-subscriptions ( e8cd90...1f8f4a )
by Peter
21:14
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\Interfaces\TrashInterface;
12
13
/**
14
 * TrashEvent
15
 *
16
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
17
 */
18
class TrashEvent extends ModelEvent
19
{
20
21
	/**
22
	 *
23
	 * @var TrashInterface
24
	 */
25
	private $trash = null;
26
27
	/**
28
	 * Get trash model used to store trashed data.
29
	 * @return TrashInterface
30
	 */
31
	public function getTrash()
32
	{
33
		return $this->trash;
34
	}
35
36
	/**
37
	 * Set trash model used to store trashed data.
38
	 * @param TrashInterface $trash
39
	 * @return \Maslosoft\Mangan\Events\TrashEvent
40
	 */
41
	public function setTrash(TrashInterface $trash)
42
	{
43
		$this->trash = $trash;
44
		return $this;
45
	}
46
47
}
48