function AmqpCaster::castQueue
File
-
vendor/
symfony/ var-dumper/ Caster/ AmqpCaster.php, line 105
Class
- AmqpCaster
- Casts Amqp related classes to array representation.
Namespace
Symfony\Component\VarDumper\CasterCode
public static function castQueue(\AMQPQueue $c, array $a, Stub $stub, bool $isNested) : array {
$prefix = Caster::PREFIX_VIRTUAL;
$a += [
$prefix . 'flags' => self::extractFlags($c->getFlags()),
];
// Recent version of the extension already expose private properties
if (isset($a["\x00AMQPQueue\x00name"])) {
return $a;
}
$a += [
$prefix . 'connection' => $c->getConnection(),
$prefix . 'channel' => $c->getChannel(),
$prefix . 'name' => $c->getName(),
$prefix . 'arguments' => $c->getArguments(),
];
return $a;
}