PHP Class MongoInt32

Inheritance: implements Alcaeus\MongoDbAdapter\TypeInterface
Show file Open project: alcaeus/mongo-php-adapter Class Usage Examples

Public Properties

Property Type Description
$value string

Public Methods

Method Description
__construct ( string $value ) Creates a new 32-bit number with the given value.
__toString ( ) : string
toBSONType ( ) : integer Converts this MongoInt32 to a native integer

Method Details

__construct() public method

Creates a new 32-bit number with the given value.
public __construct ( string $value )
$value string A number

__toString() public method

public __toString ( ) : string
return string

toBSONType() public method

Converts this MongoInt32 to a native integer
public toBSONType ( ) : integer
return integer

Property Details

$value public property

public string $value
return string