Completed
Push — master ( 28f418...2fc84b )
by Adam
19:18 queued 10:19
created

TEntityEditor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 27
ccs 4
cts 4
cp 1
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUpdatedBy() 0 4 1
A setUpdatedBy() 0 6 1
1
<?php
2
/**
3
 * TEntityEditor.php
4
 *
5
 * @copyright      More in license.md
6
 * @license        http://www.ipublikuj.eu
7
 * @author         Adam Kadlec http://www.ipublikuj.eu
8
 * @package        iPublikuj:DoctrineBlameable!
9
 * @subpackage     Entities
10
 * @since          1.0.0
11
 *
12
 * @date           29.01.14
13
 */
14
15
namespace IPub\DoctrineBlameable\Entities;
16
17
use IPub\DoctrineBlameable\Mapping\Annotation as IPub;
18
19
/**
20
 * Doctrine blameable editor entity
21
 *
22
 * @package        iPublikuj:DoctrinePhone!
23
 * @subpackage     Entities
24
 *
25
 * @author         Adam Kadlec <[email protected]>
26
 */
27
trait TEntityEditor
28 1
{
29
	/**
30
	 * @var mixed
31
	 *
32
	 * @IPub\Blameable(on="update")
33
	 */
34
	protected $updatedBy;
35
36
	/**
37
	 * {@inheritdoc}
38
	 */
39
	public function setUpdatedBy($updatedBy)
40
	{
41 1
		$this->updatedBy = $updatedBy;
42
43 1
		return $this;
44
	}
45
46
	/**
47
	 * {@inheritdoc}
48
	 */
49
	public function getUpdatedBy()
50
	{
51 1
		return $this->updatedBy;
52
	}
53
}
54