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

ManganelAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 30
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getManganel() 0 4 1
A setManganel() 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\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