Completed
Push — feature/EVO-7278-created-by-pr... ( a1521a )
by
unknown
66:28
created

BaseDocument::getUpdatedBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Document meant to keep unified Base Document structure.
4
 */
5
6
namespace Graviton\CoreBundle\Document;
7
8
// To not show in any Serialised output.
9
use JMS\Serializer\Annotation\ExclusionPolicy;
10
11
/**
12
 * App
13
 *
14
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
15
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
16
 * @link     http://swisscom.ch
17
 *
18
 * @ExclusionPolicy("all")
19
 */
20
class BaseDocument
21
{
22
    /**
23
     * @var string app id
24
     */
25
    protected $id;
26
27
    /**
28
     * @var \datetime createdAt date
29
     */
30
    protected $createdAt;
31
32
    /**
33
     * @var string updatedAt username
34
     */
35
    protected $createdBy;
36
37
    /**
38
     * @var \datetime updatedAt date
39
     */
40
    protected $updatedAt;
41
42
    /**
43
     * @var string updatedBy username
44
     */
45
    protected $updatedBy;
46
47
    /**
48
     * @return string
49
     */
50
    public function getId()
51
    {
52
        return $this->id;
53
    }
54
55
    /**
56
     * @param string $id DocumentId
57
     * @return void
58
     */
59
    public function setId($id)
60
    {
61
        $this->id = $id;
62
    }
63
64
    /**
65
     * @return \datetime Time it was created
66
     */
67
    public function getCreatedAt()
68
    {
69
        return $this->createdAt;
70
    }
71
72
    /**
73
     * @param \datetime $createdAt When document was created
74
     * @return void
75
     */
76
    public function setCreatedAt($createdAt)
77
    {
78
        $this->createdAt = $createdAt;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getCreatedBy()
85
    {
86
        return $this->createdBy;
87
    }
88
89
    /**
90
     * @param string $createdBy Who created document
91
     * @return void
92
     */
93
    public function setCreatedBy($createdBy)
94
    {
95
        $this->createdBy = $createdBy;
96
    }
97
98
    /**
99
     * @return \datetime Time it was updated
100
     */
101
    public function getUpdatedAt()
102
    {
103
        return $this->updatedAt;
104
    }
105
106
    /**
107
     * @param \datetime $updatedAt When document was updated
108
     * @return void
109
     */
110
    public function setUpdatedAt($updatedAt)
111
    {
112
        $this->updatedAt = $updatedAt;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getUpdatedBy()
119
    {
120
        return $this->updatedBy;
121
    }
122
123
    /**
124
     * @param string $updatedBy Who updated document
125
     * @return void
126
     */
127
    public function setUpdatedBy($updatedBy)
128
    {
129
        $this->updatedBy = $updatedBy;
130
    }
131
}
132