/** * Get an array serializable with json * * @return array */ public function jsonSerialize() { return ['message' => CustomAmqpMessage::getMessageProperties($this->message), 'tag' => $this->tag, 'exchange' => $this->exchange, 'queue' => $this->queue, 'routingKey' => $this->routingKey, 'redelivered' => $this->redelivered]; }
/** * Get an array serializable with json * * @return array */ public function jsonSerialize() { return ['message' => CustomAmqpMessage::getMessageProperties($this->message), 'persistent' => $this->persistent, 'mandatory' => $this->mandatory, 'immediate' => $this->immediate]; }