intelephense
1.14.41.16.1
lib/stub/mongodb/BSON/UTCDateTime.phplib/stub/mongodb/BSON/UTCDateTime.php+6−22
Index: package/lib/stub/mongodb/BSON/UTCDateTime.php
===================================================================
--- package/lib/stub/mongodb/BSON/UTCDateTime.php
+++ package/lib/stub/mongodb/BSON/UTCDateTime.php
@@ -2,24 +2,25 @@
namespace MongoDB\BSON;
use DateTimeInterface;
+use JsonSerializable;
use MongoDB\Driver\Exception\InvalidArgumentException;
-use MongoDB\Driver\Exception\UnexpectedValueException;
+use Stringable;
/**
* Represents a BSON date.
* @link https://php.net/manual/en/class.mongodb-bson-utcdatetime.php
*/
-final class UTCDateTime implements Type, UTCDateTimeInterface, \Serializable, \JsonSerializable
+final class UTCDateTime implements UTCDateTimeInterface, JsonSerializable, Type, Stringable
{
/**
* Construct a new UTCDateTime
* @link https://php.net/manual/en/mongodb-bson-utcdatetime.construct.php
*/
- final public function __construct(int|string|float|DateTimeInterface|Int64|null $milliseconds = null) {}
+ final public function __construct(int|DateTimeInterface|Int64|null $milliseconds = null) {}
- public static function __set_state(array $properties) {}
+ public static function __set_state(array $properties): self {}
/**
* Returns the DateTime representation of this UTCDateTime
* @link https://php.net/manual/en/mongodb-bson-utcdatetime.todatetime.php
@@ -39,29 +40,12 @@
*/
final public function __toString(): string {}
/**
- * Serialize a UTCDateTime
- * @since 1.2.0
- * @link https://www.php.net/manual/en/mongodb-bson-utcdatetime.serialize.php
- * @throws InvalidArgumentException
- */
- final public function serialize(): string {}
-
- /**
- * Unserialize a UTCDateTime
- * @since 1.2.0
- * @link https://www.php.net/manual/en/mongodb-bson-utcdatetime.unserialize.php
- * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid
- * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed)
- */
- final public function unserialize(string $data): void {}
-
- /**
* Returns a representation that can be converted to JSON
* @since 1.2.0
* @link https://www.php.net/manual/en/mongodb-bson-utcdatetime.jsonserialize.php
* @return mixed data which can be serialized by json_encode()
* @throws InvalidArgumentException on argument parsing errors
*/
- final public function jsonSerialize() {}
+ final public function jsonSerialize(): mixed {}
}