Completed
Push — master ( dbc3d5...613366 )
by Adam
03:57
created

TEntityEditor::getUpdatedBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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
		$this->updatedBy = $updatedBy;
42
43
		return $this;
44
	}
45
46
	/**
47
	 * {@inheritdoc}
48
	 */
49
	public function getUpdatedBy()
50
	{
51 1
		return $this->updatedBy;
52
	}
53
}
54