/** * @return AMQPConnection */ public function getAMQPConnection() { if (is_null(self::$AMQPConnection)) { self::$AMQPConnection = $this->createAMQPConnection($this->getHost(), $this->getPort(), $this->getVhost(), $this->getLogin(), $this->getPassword(), $this->getConnectionTimeout()); } return self::$AMQPConnection; }