AmqpCaster
in package
Casts Amqp related classes to array representation.
Tags
Table of Contents
- EXCHANGE_TYPES = [AMQP_EX_TYPE_DIRECT => 'AMQP_EX_TYPE_DIRECT', AMQP_EX_TYPE_FANOUT => 'AMQP_EX_TYPE_FANOUT', AMQP_EX_TYPE_TOPIC => 'AMQP_EX_TYPE_TOPIC', AMQP_EX_TYPE_HEADERS => 'AMQP_EX_TYPE_HEADERS']
- FLAGS = [AMQP_DURABLE => 'AMQP_DURABLE', AMQP_PASSIVE => 'AMQP_PASSIVE', AMQP_EXCLUSIVE => 'AMQP_EXCLUSIVE', AMQP_AUTODELETE => 'AMQP_AUTODELETE', AMQP_INTERNAL => 'AMQP_INTERNAL', AMQP_NOLOCAL => 'AMQP_NOLOCAL', AMQP_AUTOACK => 'AMQP_AUTOACK', AMQP_IFEMPTY => 'AMQP_IFEMPTY', AMQP_IFUNUSED => 'AMQP_IFUNUSED', AMQP_MANDATORY => 'AMQP_MANDATORY', AMQP_IMMEDIATE => 'AMQP_IMMEDIATE', AMQP_MULTIPLE => 'AMQP_MULTIPLE', AMQP_NOWAIT => 'AMQP_NOWAIT', AMQP_REQUEUE => 'AMQP_REQUEUE']
- castChannel() : mixed
- castConnection() : mixed
- castEnvelope() : mixed
- castExchange() : mixed
- castQueue() : mixed
- extractFlags() : ConstStub
Constants
EXCHANGE_TYPES
private
mixed
EXCHANGE_TYPES
= [AMQP_EX_TYPE_DIRECT => 'AMQP_EX_TYPE_DIRECT', AMQP_EX_TYPE_FANOUT => 'AMQP_EX_TYPE_FANOUT', AMQP_EX_TYPE_TOPIC => 'AMQP_EX_TYPE_TOPIC', AMQP_EX_TYPE_HEADERS => 'AMQP_EX_TYPE_HEADERS']
FLAGS
private
mixed
FLAGS
= [AMQP_DURABLE => 'AMQP_DURABLE', AMQP_PASSIVE => 'AMQP_PASSIVE', AMQP_EXCLUSIVE => 'AMQP_EXCLUSIVE', AMQP_AUTODELETE => 'AMQP_AUTODELETE', AMQP_INTERNAL => 'AMQP_INTERNAL', AMQP_NOLOCAL => 'AMQP_NOLOCAL', AMQP_AUTOACK => 'AMQP_AUTOACK', AMQP_IFEMPTY => 'AMQP_IFEMPTY', AMQP_IFUNUSED => 'AMQP_IFUNUSED', AMQP_MANDATORY => 'AMQP_MANDATORY', AMQP_IMMEDIATE => 'AMQP_IMMEDIATE', AMQP_MULTIPLE => 'AMQP_MULTIPLE', AMQP_NOWAIT => 'AMQP_NOWAIT', AMQP_REQUEUE => 'AMQP_REQUEUE']
Methods
castChannel()
public
static castChannel(AMQPChannel $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : AMQPChannel
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castConnection()
public
static castConnection(AMQPConnection $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : AMQPConnection
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castEnvelope()
public
static castEnvelope(AMQPEnvelope $c, array<string|int, mixed> $a, Stub $stub, bool $isNested, int $filter) : mixed
Parameters
- $c : AMQPEnvelope
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
- $filter : int
Return values
mixed —castExchange()
public
static castExchange(AMQPExchange $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : AMQPExchange
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castQueue()
public
static castQueue(AMQPQueue $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : AMQPQueue
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —extractFlags()
private
static extractFlags(int $flags) : ConstStub
Parameters
- $flags : int