bin = $data->getData(); $this->type = $data->getType(); } else { $this->bin = $data; $this->type = $type; } } /** * Returns the string "". To access the contents of a MongoBinData, use the bin field. * * @return string */ public function __toString() { return ''; } /** * Converts this MongoBinData to the new BSON Binary type * * @return Binary * @internal This method is not part of the ext-mongo API */ public function toBSONType() { return new Binary($this->bin, $this->type); } }