1 | <?php |
||
30 | class Cfp |
||
31 | { |
||
32 | /** |
||
33 | * @var string The URI for the CfP. This is the unique identifier for |
||
34 | * different CfPs. |
||
35 | */ |
||
36 | protected $uri = ''; |
||
37 | |||
38 | /** |
||
39 | * @var string The name of the event this CfP belongs to |
||
40 | */ |
||
41 | protected $name = ''; |
||
42 | |||
43 | /** |
||
44 | * @var \DateTimeInterface The start-date of the CfP |
||
45 | */ |
||
46 | protected $dateCfpStart; |
||
47 | |||
48 | /** |
||
49 | * @var \DateTimeInterface The end date of the CfP |
||
50 | */ |
||
51 | protected $dateCfpEnd; |
||
52 | |||
53 | /** |
||
54 | * @var string The Name of the venue |
||
55 | */ |
||
56 | protected $location; |
||
57 | |||
58 | /** |
||
59 | * @var float The latitude of the venue |
||
60 | */ |
||
61 | protected $latitude; |
||
62 | |||
63 | /** |
||
64 | * @var float The longitude of the venue |
||
65 | */ |
||
66 | protected $longitude; |
||
67 | |||
68 | /** |
||
69 | * @var string The description of the Event |
||
70 | */ |
||
71 | protected $description; |
||
72 | |||
73 | /** |
||
74 | * @var \DateTimeImmutable The date the event starts at |
||
75 | */ |
||
76 | protected $dateEventStart; |
||
77 | |||
78 | /** |
||
79 | * @var \DateTimeImmutable The date the event ends at |
||
80 | */ |
||
81 | protected $dateEventEnd; |
||
82 | |||
83 | /** |
||
84 | * @var string the URI of an icon of the Event |
||
85 | */ |
||
86 | protected $iconUri; |
||
87 | |||
88 | /** |
||
89 | * @var string The URI of the events-site |
||
90 | */ |
||
91 | protected $eventUri; |
||
92 | |||
93 | /** |
||
94 | * @var \DateTimeZone The Timezone of the CFP-Dates |
||
95 | */ |
||
96 | protected $timezone; |
||
97 | |||
98 | /** |
||
99 | * @var array the tags of the CfP resp. the Event |
||
100 | */ |
||
101 | protected $tags = []; |
||
102 | |||
103 | /** |
||
104 | * @var \DateTimeInterface Date of the last change |
||
105 | */ |
||
106 | protected $lastUpdate = null; |
||
107 | |||
108 | /** |
||
109 | * @var array The sources of a CfP |
||
110 | */ |
||
111 | protected $source = []; |
||
112 | |||
113 | public function __construct() |
||
121 | |||
122 | public function setUri($uri) |
||
126 | |||
127 | public function getUri() |
||
131 | |||
132 | public function setName($name) |
||
136 | |||
137 | public function getName() |
||
141 | |||
142 | public function setDateCfpStart(\DateTimeInterface $startDate) |
||
146 | |||
147 | public function getDateCfpStart() |
||
151 | |||
152 | public function setDateCfpEnd(\DateTimeInterface $endDate) |
||
156 | |||
157 | public function getDateCfpEnd() |
||
161 | |||
162 | public function getId() |
||
166 | |||
167 | public function setLocation($location) |
||
171 | |||
172 | public function getLocation() |
||
176 | |||
177 | public function setLongitude($longitude) |
||
181 | |||
182 | public function getLongitude() |
||
186 | |||
187 | public function setLatitude($latitude) |
||
191 | |||
192 | public function getLatitude() |
||
196 | |||
197 | public function setDescription($description) |
||
201 | |||
202 | public function getDescription() |
||
206 | |||
207 | public function setDateEventStart(\DateTimeInterface $startDate) |
||
211 | |||
212 | public function getDateEventStart() |
||
216 | |||
217 | public function setDateEventEnd(\DateTimeInterface $endDate) |
||
221 | |||
222 | public function getDateEventEnd() |
||
226 | |||
227 | public function setIconUri($iconUri) |
||
231 | |||
232 | public function getIconUri() |
||
236 | |||
237 | public function setEventUri($eventUri) |
||
241 | |||
242 | public function getEventUri() |
||
246 | |||
247 | public function setTimezone($timezone) |
||
255 | |||
256 | public function getTimezone() |
||
260 | |||
261 | public function getHash() |
||
265 | |||
266 | public function setTags(array $tags) |
||
270 | |||
271 | public function getTags() |
||
275 | |||
276 | public function getLastUdated() |
||
280 | |||
281 | public function setLastUpdated(\DateTimeinterface $date) |
||
285 | |||
286 | public function setSource(array $source) |
||
290 | |||
291 | public function getSource() |
||
295 | |||
296 | public function addSource($source) |
||
302 | } |
||
303 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.