Since: 1.5.0

final class Int64 implements Type, Serializable, JsonSerializable (View source)

BSON type for a 64-bit integer.

Methods

__construct(string|int $value)

No description

string|null
serialize()

Serialize an Int64

static 
__set_state(array $properties)

No description

void
unserialize(string $data)

Unserialize an Int64

mixed
jsonSerialize()

Returns a representation that can be converted to JSON

string
__toString()

Returns the Symbol as a string

Details

final __construct(string|int $value)

Since: 1.16.0

No description

Parameters

string|int $value

final string|null serialize()

Serialize an Int64

Return Value

string|null

The string representation of the object or null

Exceptions

InvalidArgumentException

static __set_state(array $properties)

No description

Parameters

array $properties

final void unserialize(string $data)

Unserialize an Int64

Parameters

string $data

The string representation of the object.

Return Value

void

Exceptions

InvalidArgumentException
UnexpectedValueException

final mixed jsonSerialize()

Returns a representation that can be converted to JSON

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

Exceptions

InvalidArgumentException

final string __toString()

Returns the Symbol as a string

Return Value

string

Returns the string representation of this Symbol.