Skip to content

Commit

Permalink
Add MongoDB\BSON\UTCDateTime::toDateTimeImmutable()
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN authored and isfedorov committed Jul 24, 2024
1 parent b164b02 commit 5686f9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mongodb/BSON/UTCDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ public static function __set_state(array $properties) {}
*/
final public function toDateTime(): \DateTime {}

/**
* Returns the DateTimeImmutable representation of this UTCDateTime
* @since 1.20.0
* @link https://php.net/manual/en/mongodb-bson-utcdatetime.todatetimeimmutable.php
*/
final public function toDateTimeImmutable(): \DateTimeImmutable {}

/**
* Returns the string representation of this UTCDateTime
* @link https://php.net/manual/en/mongodb-bson-utcdatetime.tostring.php
Expand Down

0 comments on commit 5686f9c

Please sign in to comment.