public __construct ( integer | MongoDB\BSON\UTCDateTime | null $datetime = null ) | ||
$datetime | integer | MongoDB\BSON\UTCDateTime | null | MongoUTCDateTime or Timestamp to wrap. If it was null, uses current timestamp. |
public function __construct($datetime = null)
{
if (false === $this->init($datetime)) {
throw new InvalidArgumentException('Invalid argument type given. Constructor allows only integer, ' . 'null or MongoDB\\BSON\\UTCDateTime');
}
}