1 | <?php |
||
20 | class ProjectModel implements ResourceModelInterface |
||
21 | { |
||
22 | /** |
||
23 | * ID of user who created project. |
||
24 | * |
||
25 | * Comment: Contact ID |
||
26 | * |
||
27 | * @SA\Type("string") |
||
28 | * @SA\SerializedName("authorId") |
||
29 | * |
||
30 | * @var string|null |
||
31 | */ |
||
32 | protected $authorId; |
||
33 | |||
34 | /** |
||
35 | * List of project owner IDs. |
||
36 | * |
||
37 | * Comment: Contact ID list |
||
38 | * |
||
39 | * @SA\Type("array<string>") |
||
40 | * @SA\SerializedName("ownerIds") |
||
41 | * |
||
42 | * @var array|string[]|null |
||
43 | */ |
||
44 | protected $ownerIds; |
||
45 | |||
46 | /** |
||
47 | * Project status. |
||
48 | * |
||
49 | * Enum: Green, Yellow, Red, Completed, OnHold, Cancelled |
||
50 | * |
||
51 | * @see \Zibios\WrikePhpLibrary\Enum\ProjectStatusEnum |
||
52 | * |
||
53 | * @SA\Type("string") |
||
54 | * @SA\SerializedName("status") |
||
55 | * |
||
56 | * @var string|null |
||
57 | */ |
||
58 | protected $status; |
||
59 | |||
60 | /** |
||
61 | * Project start date. |
||
62 | * |
||
63 | * Format: yyyy-MM-dd |
||
64 | * Comment: Optional |
||
65 | * |
||
66 | * @SA\Type("DateTime<'Y-m-d'>") |
||
67 | * @SA\SerializedName("startDate") |
||
68 | * |
||
69 | * @var \DateTime|null |
||
70 | */ |
||
71 | protected $startDate; |
||
72 | |||
73 | /** |
||
74 | * Project end date. |
||
75 | * |
||
76 | * Format: yyyy-MM-dd |
||
77 | * Comment: Optional |
||
78 | * |
||
79 | * @SA\Type("DateTime<'Y-m-d'>") |
||
80 | * @SA\SerializedName("endDate") |
||
81 | * |
||
82 | * @var \DateTime|null |
||
83 | */ |
||
84 | protected $endDate; |
||
85 | |||
86 | /** |
||
87 | * Project created date. |
||
88 | * |
||
89 | * Format: yyyy-MM-dd'T'HH:mm:ss'Z' |
||
90 | * Comment: Optional |
||
91 | * |
||
92 | * @SA\Type("DateTime<'Y-m-d\TH:i:s\Z'>") |
||
93 | * @SA\SerializedName("createdDate") |
||
94 | * |
||
95 | * @var \DateTime|null |
||
96 | */ |
||
97 | protected $createdDate; |
||
98 | |||
99 | /** |
||
100 | * Project completed date. |
||
101 | * |
||
102 | * Format: yyyy-MM-dd'T'HH:mm:ss'Z' |
||
103 | * Comment: Optional |
||
104 | * |
||
105 | * @SA\Type("DateTime<'Y-m-d\TH:i:s\Z'>") |
||
106 | * @SA\SerializedName("completedDate") |
||
107 | * |
||
108 | * @var \DateTime|null |
||
109 | */ |
||
110 | protected $completedDate; |
||
111 | |||
112 | /** |
||
113 | * @return null|string |
||
114 | */ |
||
115 | 1 | public function getAuthorId() |
|
119 | |||
120 | /** |
||
121 | * @param null|string $authorId |
||
122 | * |
||
123 | * @return $this |
||
124 | */ |
||
125 | 1 | public function setAuthorId($authorId) |
|
131 | |||
132 | /** |
||
133 | * @return array|null|\string[] |
||
134 | */ |
||
135 | 1 | public function getOwnerIds() |
|
139 | |||
140 | /** |
||
141 | * @param array|null|\string[] $ownerIds |
||
142 | * |
||
143 | * @return $this |
||
144 | */ |
||
145 | 1 | public function setOwnerIds($ownerIds) |
|
151 | |||
152 | /** |
||
153 | * @return null|string |
||
154 | */ |
||
155 | 1 | public function getStatus() |
|
159 | |||
160 | /** |
||
161 | * @param null|string $status |
||
162 | * |
||
163 | * @return $this |
||
164 | */ |
||
165 | 1 | public function setStatus($status) |
|
171 | |||
172 | /** |
||
173 | * @return \DateTime|null |
||
174 | */ |
||
175 | 1 | public function getStartDate() |
|
179 | |||
180 | /** |
||
181 | * @param \DateTime|null $startDate |
||
182 | * |
||
183 | * @return $this |
||
184 | */ |
||
185 | 1 | public function setStartDate($startDate) |
|
191 | |||
192 | /** |
||
193 | * @return \DateTime|null |
||
194 | */ |
||
195 | 1 | public function getEndDate() |
|
199 | |||
200 | /** |
||
201 | * @param \DateTime|null $endDate |
||
202 | * |
||
203 | * @return $this |
||
204 | */ |
||
205 | 1 | public function setEndDate($endDate) |
|
211 | |||
212 | /** |
||
213 | * @return \DateTime|null |
||
214 | */ |
||
215 | 1 | public function getCreatedDate() |
|
219 | |||
220 | /** |
||
221 | * @param \DateTime|null $createdDate |
||
222 | * |
||
223 | * @return $this |
||
224 | */ |
||
225 | 1 | public function setCreatedDate($createdDate) |
|
231 | |||
232 | /** |
||
233 | * @return \DateTime|null |
||
234 | */ |
||
235 | 1 | public function getCompletedDate() |
|
239 | |||
240 | /** |
||
241 | * @param \DateTime|null $completedDate |
||
242 | * |
||
243 | * @return $this |
||
244 | */ |
||
245 | 1 | public function setCompletedDate($completedDate) |
|
251 | } |
||
252 |