php-amqplib

AMQPAbstractCollection
in package
implements Iterator, ArrayAccess

Iterator implemented for transparent integration with AMQPWriter::write_[array|table]()

Interfaces, Classes and Traits

Iterator
ArrayAccess

Table of Contents

PROTOCOL_RBT  = 'rabbit'
T_ARRAY  = 15
T_BOOL  = 12
T_BYTES  = 17
T_DECIMAL  = 9
T_DOUBLE  = 19
T_FLOAT  = 18
T_INT_LONG  = 5
T_INT_LONG_U  = 6
T_INT_LONGLONG  = 7
T_INT_LONGLONG_U  = 8
T_INT_SHORT  = 3
T_INT_SHORT_U  = 4
T_INT_SHORTSHORT  = 1
T_INT_SHORTSHORT_U  = 2
T_STRING_LONG  = 14
T_STRING_SHORT  = 13
T_TABLE  = 16
T_TIMESTAMP  = 10
T_VOID  = 11
$data  : array<string|int, mixed>
$protocol  : string
$types_080  : mixed
$types_091  : array<int, string>
$types_rabbit  : array<int, string>
__construct()  : mixed
checkDataTypeIsSupported()  : bool
current()  : mixed
getDataTypeForSymbol()  : int
getNativeData()  : array<string|int, mixed>
getProtocol()  : string
getSupportedDataTypes()  : array<string|int, mixed>
getSymbolForDataType()  : string
getType()  : int
isProtocol()  : bool
key()  : mixed
next()  : void
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
rewind()  : void
valid()  : bool
decodeCollection()  : array<string|int, mixed>
decodeValue()  : array<string|int, mixed>|bool|DateTime|null
encodeBool()  : array<string|int, mixed>
encodeCollection()  : array<string|int, mixed>
encodeFloat()  : array<string|int, mixed>
encodeInt()  : array<string|int, mixed>
encodeString()  : array<string|int, mixed>
encodeValue()  : mixed
encodeVoid()  : array<string|int, mixed>
setValue()  : mixed

Constants

Properties

$types_080

private static mixed $types_080 = array(self::T_INT_LONG => 'I', self::T_DECIMAL => 'D', self::T_TIMESTAMP => 'T', self::T_STRING_LONG => 'S', self::T_TABLE => 'F')

$types_091

private static array<int, string> $types_091 = array(self::T_INT_SHORTSHORT => 'b', self::T_INT_SHORTSHORT_U => 'B', self::T_INT_SHORT => 'U', self::T_INT_SHORT_U => 'u', self::T_INT_LONG => 'I', self::T_INT_LONG_U => 'i', self::T_INT_LONGLONG => 'L', self::T_INT_LONGLONG_U => 'l', self::T_FLOAT => 'f', self::T_DOUBLE => 'd', self::T_DECIMAL => 'D', self::T_TIMESTAMP => 'T', self::T_VOID => 'V', self::T_BOOL => 't', self::T_STRING_SHORT => 's', self::T_STRING_LONG => 'S', self::T_ARRAY => 'A', self::T_TABLE => 'F', self::T_BYTES => 'x')

$types_rabbit

private static array<int, string> $types_rabbit = array(self::T_INT_SHORTSHORT => 'b', self::T_INT_SHORTSHORT_U => 'B', self::T_INT_SHORT => 's', self::T_INT_SHORT_U => 'u', self::T_INT_LONG => 'I', self::T_INT_LONG_U => 'i', self::T_INT_LONGLONG => 'l', self::T_FLOAT => 'f', self::T_DOUBLE => 'd', self::T_DECIMAL => 'D', self::T_TIMESTAMP => 'T', self::T_VOID => 'V', self::T_BOOL => 't', self::T_STRING_LONG => 'S', self::T_ARRAY => 'A', self::T_TABLE => 'F', self::T_BYTES => 'x')

Methods

__construct()

public __construct([array<string|int, mixed>|null $data = null ]) : mixed
Parameters
$data : array<string|int, mixed>|null = null
Return values
mixed

checkDataTypeIsSupported()

public final static checkDataTypeIsSupported(string $type[, bool $return = true ]) : bool
Parameters
$type : string
$return : bool = true

Whether to return or raise AMQPOutOfRangeException

Return values
bool

getDataTypeForSymbol()

public final static getDataTypeForSymbol(string $symbol) : int
Parameters
$symbol : string
Return values
int

getNativeData()

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

getProtocol()

public final static getProtocol() : string
Tags
deprecated
Return values
string

getSupportedDataTypes()

public final static getSupportedDataTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

[dataTypeConstant => dataTypeSymbol]

getSymbolForDataType()

public final static getSymbolForDataType(int $type) : string
Parameters
$type : int
Return values
string

isProtocol()

public final static isProtocol(string $proto) : bool
Parameters
$proto : string
Return values
bool

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Return values
void

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed
Return values
void

decodeCollection()

protected final decodeCollection(array<string|int, mixed> $val) : array<string|int, mixed>
Parameters
$val : array<string|int, mixed>
Return values
array<string|int, mixed>

decodeValue()

protected decodeValue(mixed $val, int $type) : array<string|int, mixed>|bool|DateTime|null
Parameters
$val : mixed
$type : int
Return values
array<string|int, mixed>|bool|DateTime|null

encodeBool()

protected encodeBool(bool $val) : array<string|int, mixed>
Parameters
$val : bool
Return values
array<string|int, mixed>

encodeCollection()

protected final encodeCollection(array<string|int, mixed> $val) : array<string|int, mixed>
Parameters
$val : array<string|int, mixed>
Return values
array<string|int, mixed>

encodeFloat()

protected encodeFloat(float $val) : array<string|int, mixed>
Parameters
$val : float
Return values
array<string|int, mixed>

encodeInt()

protected encodeInt(int $val) : array<string|int, mixed>
Parameters
$val : int
Return values
array<string|int, mixed>

encodeString()

protected encodeString(string $val) : array<string|int, mixed>
Parameters
$val : string
Return values
array<string|int, mixed>

encodeVoid()

protected encodeVoid() : array<string|int, mixed>
Return values
array<string|int, mixed>

setValue()

protected final setValue(mixed $val[, int|null $type = null ][, string $key = null ]) : mixed
Parameters
$val : mixed
$type : int|null = null
$key : string = null
Return values
mixed

Search results