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

OwnerAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 20
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

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