Parse PHP SDK API Reference

ParseBytes
in package
implements Encodable

Class ParseBytes - Representation of a Byte array for storage on a Parse Object.

Tags
author

Fosco Marotto [email protected]

Interfaces, Classes and Traits

Encodable
Class Encodable - Interface for Parse Classes which provide an encode method.

Table of Contents

$byteArray  : array<string|int, mixed>
Byte array.
_encode()  : array<string|int, mixed>
Encode to associative array representation.
createFromBase64Data()  : ParseBytes
Create a ParseBytes object with a given base 64 encoded data string.
createFromByteArray()  : ParseBytes
Create a ParseBytes object with a given byte array.
setBase64Data()  : mixed
Decodes and unpacks a given base64 encoded array of data
setByteArray()  : mixed
Sets a new byte array

Properties

$byteArray

Byte array.

private array<string|int, mixed> $byteArray

Methods

_encode()

Encode to associative array representation.

public _encode() : array<string|int, mixed>
Return values
array<string|int, mixed>

createFromBase64Data()

Create a ParseBytes object with a given base 64 encoded data string.

public static createFromBase64Data(string $base64Data) : ParseBytes
Parameters
$base64Data : string
Return values
ParseBytes

createFromByteArray()

Create a ParseBytes object with a given byte array.

public static createFromByteArray(array<string|int, mixed> $byteArray) : ParseBytes
Parameters
$byteArray : array<string|int, mixed>
Return values
ParseBytes

setBase64Data()

Decodes and unpacks a given base64 encoded array of data

private setBase64Data(string $base64Data) : mixed
Parameters
$base64Data : string
Return values
mixed

setByteArray()

Sets a new byte array

private setByteArray(array<string|int, mixed> $byteArray) : mixed
Parameters
$byteArray : array<string|int, mixed>

Byte array to set

Return values
mixed

Search results