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
Afficher le fichier Open project: GoogleCloudPlatform/gcloud-php Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

Format the value as a string.
public __toString ( ) : string
Résultat string

formatAsString() public méthode

Format the value as a string.
public formatAsString ( ) : string
Résultat string

get() public méthode

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

type() public méthode

Get the type.
public type ( ) : string
Résultat string