1 | <?php |
||
13 | abstract class Entry implements EntryInterface |
||
14 | { |
||
15 | /** |
||
16 | * @Id |
||
17 | * @Column(type="integer") |
||
18 | * @GeneratedValue |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** |
||
23 | * @Column(type="integer") |
||
24 | */ |
||
25 | private $userId; |
||
26 | |||
27 | /** |
||
28 | * @Column(type="datetime") |
||
29 | * @var DateTime |
||
30 | */ |
||
31 | private $date; |
||
32 | |||
33 | /** @Column(type="decimal",precision=11,scale=2) */ |
||
34 | private $amount; |
||
35 | |||
36 | /** @Column(type="string",length=50,nullable=true) */ |
||
37 | private $category; |
||
38 | |||
39 | /** @Column(type="string",length=50,nullable=true) */ |
||
40 | private $description; |
||
41 | |||
42 | /** @Column(type="string",length=255,nullable=true) */ |
||
43 | private $note; |
||
44 | |||
45 | /** |
||
46 | * @return int |
||
47 | */ |
||
48 | 5 | public function getId() |
|
52 | |||
53 | /** |
||
54 | * @param int $id |
||
55 | * @return Entry |
||
56 | */ |
||
57 | 9 | public function setId($id) |
|
62 | |||
63 | /** |
||
64 | * @return mixed |
||
65 | */ |
||
66 | 5 | public function getUserId() |
|
70 | |||
71 | /** |
||
72 | * @param mixed $userId |
||
73 | * @return Entry |
||
74 | */ |
||
75 | 9 | public function setUserId($userId) |
|
80 | |||
81 | |||
82 | |||
83 | /** |
||
84 | * @return DateTime |
||
85 | */ |
||
86 | 2 | public function getDate() |
|
90 | |||
91 | /** |
||
92 | * @param DateTime $date |
||
93 | * @return Entry |
||
94 | */ |
||
95 | 9 | public function setDate(DateTime $date) |
|
100 | |||
101 | /** |
||
102 | * @return float |
||
103 | */ |
||
104 | 2 | public function getAmount() |
|
108 | |||
109 | /** |
||
110 | * @param float $amount |
||
111 | * @return Entry |
||
112 | */ |
||
113 | 9 | public function setAmount($amount) |
|
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | 2 | public function getCategory() |
|
126 | |||
127 | /** |
||
128 | * @param string $category |
||
129 | * @return Entry |
||
130 | */ |
||
131 | 9 | public function setCategory($category) |
|
136 | |||
137 | /** |
||
138 | * @return string |
||
139 | */ |
||
140 | 2 | public function getDescription() |
|
144 | |||
145 | /** |
||
146 | * @param string $description |
||
147 | * @return Entry |
||
148 | */ |
||
149 | 9 | public function setDescription($description) |
|
154 | |||
155 | /** |
||
156 | * @return string |
||
157 | */ |
||
158 | 2 | public function getNote() |
|
162 | |||
163 | /** |
||
164 | * @param string $note |
||
165 | * @return Entry |
||
166 | */ |
||
167 | 9 | public function setNote($note) |
|
172 | } |