Open MazeChaZer opened 7 years ago
Thanks for the MR.
I used __toString() everywhere, except for Year, Month and DayOfWeek, where I just used the integer value. Seemed sensible to me, but I'm not very opiniated about this.
Yeah, I think that's also what most people will expect even if it breaks consistency.
Unfortunately before I can merge it there also need to be the tests for the code, which mostly can be reused from the _toString()
tests. Also it would be great to have proper documentation in place and not the generic phpdoc from php itself.
Alright, I will add those
I added unit tests for all new methods and simple documentation.
What's the status on this?
Resolves #3 I used
__toString()
everywhere, except forYear
,Month
andDayOfWeek
, where I just used the integer value. Seemed sensible to me, but I'm not very opiniated about this.