ManganelAwareTrait::setManganel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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