Completed
Push — master ( 4a9289...6c8c8c )
by Peter
08:35
created

ManganelAwareTrait::getManganel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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\Manganel\Traits;
10
11
use Maslosoft\Manganel\Manganel;
12
13
/**
14
 * ManganelAwareTrait
15
 *
16
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
17
 */
18
trait ManganelAwareTrait
19
{
20
21
	/**
22
	 * Manganel instance
23
	 * @var Manganel
24
	 */
25
	private $manganel = null;
26
27
	/**
28
	 *
29
	 * @return Manganel
30
	 */
31 10
	public function getManganel()
32
	{
33 10
		return $this->manganel;
34
	}
35
36
	/**
37
	 *
38
	 * @param Manganel $manganel
39
	 * @return $this
40
	 */
41 10
	public function setManganel(Manganel $manganel)
42
	{
43 10
		$this->manganel = $manganel;
44 10
		return $this;
45
	}
46
47
}
48