Test Failed
Push — master ( c4aa6a...a5e42e )
by Mathieu
03:19
created

AuthorableTrait::getCreatedBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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