1 | <?php |
||
22 | class MongoInt32 implements TypeInterface |
||
23 | { |
||
24 | /** |
||
25 | * @link http://php.net/manual/en/class.mongoint32.php#mongoint32.props.value |
||
26 | * @var string |
||
27 | */ |
||
28 | public $value; |
||
29 | |||
30 | /** |
||
31 | * Creates a new 32-bit number with the given value. |
||
32 | * |
||
33 | * @link http://php.net/manual/en/mongoint32.construct.php |
||
34 | * @param string $value A number |
||
35 | */ |
||
36 | public function __construct($value) |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function __toString() |
||
48 | |||
49 | /** |
||
50 | * Converts this MongoInt32 to a native integer |
||
51 | * |
||
52 | * @return int |
||
53 | * @internal This method is not part of the ext-mongo API |
||
54 | */ |
||
55 | public function toBSONType() |
||
59 | } |
||
60 |