Completed
Push — master ( aa5a0d...109f75 )
by Peter
05:58
created

OwnerAwareTrait::getOwner()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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\MiniView\Traits;
10
11
/**
12
 * OwnerTrait
13
 *
14
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
15
 */
16
trait OwnerAwareTrait
17
{
18
19
	/**
20
	 * Owner class
21
	 * @var object
22
	 */
23
	private $owner = null;
24
25
	public function getOwner()
26
	{
27
		return $this->owner;
28
	}
29
30
	public function setOwner($owner)
31
	{
32
		$this->owner = $owner;
33
	}
34
35
}
36