Passed
Push — master ( 67ee52...70965b )
by Mathieu
02:28
created

AuthorableTrait::createdBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Charcoal\Object;
4
5
trait AuthorableTrait
6
{
7
    /**
8
     * @var mixed
9
     */
10
    private $createdBy;
11
12
    /**
13
     * @var mixed
14
     */
15
    private $lastModifiedBy;
16
17
    /**
18
     * @param mixed $createdBy The creator of the content object.
19
     * @return self
20
     */
21
    public function setCreatedBy($createdBy)
22
    {
23
        $this->createdBy = $createdBy;
24
        return $this;
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30
    public function createdBy()
31
    {
32
        return $this->createdBy;
33
    }
34
35
    /**
36
     * @param mixed $lastModifiedBy The last modification's username.
37
     * @return self
38
     */
39
    public function setLastModifiedBy($lastModifiedBy)
40
    {
41
        $this->lastModifiedBy = $lastModifiedBy;
42
        return $this;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function lastModifiedBy()
49
    {
50
        return $this->lastModifiedBy;
51
    }
52
}
53