return $a;
} /**
* @return array
*/
public static function castEnvelope(\AMQPEnvelope
$c, array
$a, Stub
$stub, bool
$isNested, int
$filter = 0
) { $prefix = Caster::PREFIX_VIRTUAL;
$deliveryMode =
new ConstStub($c->
getDeliveryMode().
(2 ===
$c->
getDeliveryMode() ? ' (persistent)' : ' (non-persistent)'
),
$c->
getDeliveryMode());
// Recent version of the extension already expose private properties
if (isset($a["\x00AMQPEnvelope\x00body"
])) { $a["\0AMQPEnvelope\0delivery_mode"
] =
$deliveryMode;
return $a;
} if (!
($filter & Caster::EXCLUDE_VERBOSE
)) { $a +=
[$prefix.'body' =>
$c->
getBody()];
}