PHP Class Google\Cloud\BigQuery\Bytes

Example: use Google\Cloud\ServiceBuilder; $cloud = new ServiceBuilder(); $bigQuery = $cloud->bigQuery(); $bytes = $bigQuery->bytes('hello world');
Inheritance: implements Google\Cloud\BigQuery\ValueInterface
显示文件 Open project: GoogleCloudPlatform/gcloud-php Class Usage Examples

Public Methods

Method Description
__construct ( string | resource | Psr\Http\Message\StreamInterface $value )
__toString ( ) : string Format the value as a string.
formatAsString ( ) : string Format the value as a string.
get ( ) : Psr\Http\Message\StreamInterface Get the bytes as a stream.
type ( ) : string Get the type.

Method Details

__construct() public method

public __construct ( string | resource | Psr\Http\Message\StreamInterface $value )
$value string | resource | Psr\Http\Message\StreamInterface The bytes value.

__toString() public method

Format the value as a string.
public __toString ( ) : string
return string

formatAsString() public method

Format the value as a string.
public formatAsString ( ) : string
return string

get() public method

Get the bytes as a stream.
public get ( ) : Psr\Http\Message\StreamInterface
return Psr\Http\Message\StreamInterface

type() public method

Get the type.
public type ( ) : string
return string