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

AuthorableTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 48
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setCreatedBy() 0 5 1
A setLastModifiedBy() 0 5 1
A getCreatedBy() 0 4 1
A getLastModifiedBy() 0 4 1
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