ManganelAwareTrait   A
last analyzed

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
 * This software package is licensed under `AGPL-3.0-only, proprietary` license[s].
5
 *
6
 * @package maslosoft/manganel
7
 * @license AGPL-3.0-only, proprietary
8
 *
9
 * @copyright Copyright (c) Peter Maselkowski <[email protected]>
10
 * @link https://maslosoft.com/manganel/
11
 */
12
13
namespace Maslosoft\Manganel\Traits;
14
15
use Maslosoft\Manganel\Manganel;
16
17
/**
18
 * ManganelAwareTrait
19
 *
20
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
21
 */
22
trait ManganelAwareTrait
23
{
24
25
	/**
26
	 * Manganel instance
27
	 * @var Manganel
28
	 */
29
	private $manganel = null;
30
31
	/**
32
	 *
33
	 * @return Manganel
34
	 */
35 32
	public function getManganel()
36
	{
37 32
		return $this->manganel;
38
	}
39
40
	/**
41
	 *
42
	 * @param Manganel $manganel
43
	 * @return $this
44
	 */
45 32
	public function setManganel(Manganel $manganel)
46
	{
47 32
		$this->manganel = $manganel;
48 32
		return $this;
49
	}
50
51
}
52