src/League/Monga.php
public static function data($data, $type = null)
    {
        $type === null && $type = MongoBinData::BYTE_ARRAY;

        return new MongoBinData($data, $type);
    }
public static function data($data, $type = null)
    {
        $type === null && $type = MongoBinData::BYTE_ARRAY;

        return new MongoBinData($data, $type);
    }
public static function data ( $ data , $ type = null ) { $ type === null && $ type = MongoBinData :: BYTE_ARRAY ; return new MongoBinData ( $ data , $ type ) ; }
Returns a MongoBinData object

@param string $data data
@param int $type data type

@return MongoBinData
Returns a MongoBinData object