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
PROTOCOL_RBT
public
mixed
PROTOCOL_RBT
= 'rabbit'
T_ARRAY
public
mixed
T_ARRAY
= 15
T_BOOL
public
mixed
T_BOOL
= 12
T_BYTES
public
mixed
T_BYTES
= 17
T_DECIMAL
public
mixed
T_DECIMAL
= 9
T_DOUBLE
public
mixed
T_DOUBLE
= 19
T_FLOAT
public
mixed
T_FLOAT
= 18
T_INT_LONG
public
mixed
T_INT_LONG
= 5
T_INT_LONG_U
public
mixed
T_INT_LONG_U
= 6
T_INT_LONGLONG
public
mixed
T_INT_LONGLONG
= 7
T_INT_LONGLONG_U
public
mixed
T_INT_LONGLONG_U
= 8
T_INT_SHORT
public
mixed
T_INT_SHORT
= 3
T_INT_SHORT_U
public
mixed
T_INT_SHORT_U
= 4
T_INT_SHORTSHORT
public
mixed
T_INT_SHORTSHORT
= 1
T_INT_SHORTSHORT_U
public
mixed
T_INT_SHORTSHORT_U
= 2
T_STRING_LONG
public
mixed
T_STRING_LONG
= 14
T_STRING_SHORT
public
mixed
T_STRING_SHORT
= 13
T_TABLE
public
mixed
T_TABLE
= 16
T_TIMESTAMP
public
mixed
T_TIMESTAMP
= 10
T_VOID
public
mixed
T_VOID
= 11
Properties
$data
protected
array<string|int, mixed>
$data
= array()
$protocol
private
static string
$protocol
$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 —current()
public
current() : mixed
Return values
mixed —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
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 —getType()
public
abstract getType() : int
Return values
int —isProtocol()
public
final static isProtocol(string $proto) : bool
Parameters
- $proto : string
Return values
bool —key()
public
key() : mixed
Return values
mixed —next()
public
next() : void
Return values
void —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 —rewind()
public
rewind() : void
Return values
void —valid()
public
valid() : bool
Return values
bool —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> —encodeValue()
protected
encodeValue(mixed $val) : mixed
Parameters
- $val : mixed
Tags
Return values
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