1 | <?php |
||
12 | class AbstractBasicEntity |
||
13 | { |
||
14 | /** |
||
15 | * @var integer |
||
16 | */ |
||
17 | protected $id; |
||
18 | |||
19 | /** |
||
20 | * @var \DateTime |
||
21 | */ |
||
22 | protected $timeCreated; |
||
23 | |||
24 | /** |
||
25 | * @var \DateTime |
||
26 | */ |
||
27 | protected $timeUpdated; |
||
28 | |||
29 | /*** Id ***/ |
||
30 | /** |
||
31 | * @return integer |
||
32 | */ |
||
33 | public function getId() |
||
37 | |||
38 | /** |
||
39 | * @param integer $id |
||
40 | * |
||
41 | * @return AbstractBasicEntity |
||
42 | */ |
||
43 | public function setId($id) |
||
49 | |||
50 | /*** Time created ***/ |
||
51 | /** |
||
52 | * @return \DateTime |
||
53 | */ |
||
54 | public function getTimeCreated() |
||
58 | |||
59 | /** |
||
60 | * @param \DateTime $timeCreated |
||
61 | * |
||
62 | * @return AbstractBasicEntity |
||
63 | */ |
||
64 | public function setTimeCreated(\DateTime $timeCreated) |
||
70 | |||
71 | /*** Time updated ***/ |
||
72 | /** |
||
73 | * @return \DateTime |
||
74 | */ |
||
75 | public function getTimeUpdated() |
||
79 | |||
80 | /** |
||
81 | * @param \DateTime $timeUpdated |
||
82 | * |
||
83 | * @return AbstractBasicEntity |
||
84 | */ |
||
85 | public function setTimeUpdated(\DateTime $timeUpdated) |
||
91 | |||
92 | /** |
||
93 | * Returns data in array |
||
94 | * |
||
95 | * @return array |
||
96 | */ |
||
97 | public function toArray() |
||
105 | } |
||
106 |