/** * @return \AMQPChannel */ public function getChanel() { if ($this->chanel === null) { $connection = $this->amqp->getConnection(); $this->chanel = new \AMQPChannel($connection); } return $this->chanel; }