why u set : $endDatetime = null, $allDay = false
Should be better if you make a allday = true or put a default endDateTime
If the user doesnt specify these parameters he gonna get an exception directly because he doesnt define a endDate for a non-allDay event
So why allow these parameters optionnal if they make an instant exception if they're not specify.
Make them necessary or change to a default endDate, or set allday true by default
For IDE better \t than \T :)
why u set : $endDatetime = null, $allDay = false Should be better if you make a allday = true or put a default endDateTime
If the user doesnt specify these parameters he gonna get an exception directly because he doesnt define a endDate for a non-allDay event So why allow these parameters optionnal if they make an instant exception if they're not specify.
Make them necessary or change to a default endDate, or set allday true by default
Thanks :)
Hope u enjoy :)