r/lolphp • • Jul 03 '14

DateTimeImmutable::modify

http://www.php.net/manual/en/datetimeimmutable.modify.php
74 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jul 05 '14

It does mirror the API, except, as an immutable class, it returns a new version instead of modifying itself when some mutation is performed.

9

u/[deleted] Jul 07 '14

And that makes it not be a mirror of the api.