Completed
Push — development ( 1c3d48...61edbf )
by Alexander
03:31
created

ApplicationTrait::setApplication()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Trait for application object handling
4
 *
5
 * @file      ApplicationTrait.php
6
 *
7
 * PHP version 5.4+
8
 *
9
 * @author    Yancharuk Alexander <alex at itvault dot info>
10
 * @copyright © 2012-2016 Alexander Yancharuk
11
 * @date      2016-10-21 16:44
12
 * @license   The BSD 3-Clause License
13
 *            <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
14
 */
15
16
namespace Application;
17
18
trait ApplicationTrait
19
{
20
	protected $application;
21
22
	/**
23
	 * Get application object
24
	 *
25
	 * @return mixed
26
	 */
27 1
	public function getApplication()
28
	{
29 1
		return $this->application;
30
	}
31
32
	/**
33
	 * Set application
34
	 *
35
	 * @param mixed $application
36
	 *
37
	 * @return $this
38
	 */
39 1
	public function setApplication($application)
40
	{
41 1
		$this->application = $application;
42
43 1
		return $this;
44
	}
45
}
46