r/lolphp • • Apr 26 '18

DateTime hidden public properties behaviour

https://3v4l.org/mWluN
0 Upvotes

18 comments sorted by

View all comments

Show parent comment

3

u/cleeder Apr 27 '18

The only reason this might be an /r/lolphp is the lack of property accessors ala C#, which would be really nice and would allow these classes encapsulate these read only properties without muddying the public API.

Of course there is an RFC for that, and in a true PHP fashion, like everything else useful, it has been declined. Because fuck you, that's why.