芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/lot.mgaplay.com.br/vendor/mongodb/mongodb/src/Model/BSONDocument.php
$value) { $this[$key] = recursive_copy($value); } } /** * This overrides the parent constructor to allow property access of entries * by default. * * @see http://php.net/arrayobject.construct * @param array $input * @param integer $flags * @param string $iteratorClass */ public function __construct($input = [], $flags = ArrayObject::ARRAY_AS_PROPS, $iteratorClass = 'ArrayIterator') { parent::__construct($input, $flags, $iteratorClass); } /** * Factory method for var_export(). * * @see http://php.net/oop5.magic#object.set-state * @see http://php.net/var-export * @param array $properties * @return self */ public static function __set_state(array $properties) { $document = new static(); $document->exchangeArray($properties); return $document; } /** * Serialize the document to BSON. * * @see http://php.net/mongodb-bson-serializable.bsonserialize * @return object */ public function bsonSerialize() { return (object) $this->getArrayCopy(); } /** * Unserialize the document to BSON. * * @see http://php.net/mongodb-bson-unserializable.bsonunserialize * @param array $data Array data */ public function bsonUnserialize(array $data) { parent::__construct($data, ArrayObject::ARRAY_AS_PROPS); } /** * Serialize the array to JSON. * * @see http://php.net/jsonserializable.jsonserialize * @return object */ #[ReturnTypeWillChange] public function jsonSerialize() { return (object) $this->getArrayCopy(); } }