public function add(
        string $serviceName,
        Promise $promise
    ) {
        $correlationId = $this->getPromiseCorrelationId($promise);

        $this->promises[$correlationId] = $promise;
        $this->services[$correlationId] = $serviceName;
    }
public function add(
        string $serviceName,
        Promise $promise
    ) {
        $correlationId = $this->getPromiseCorrelationId($promise);

        $this->promises[$correlationId] = $promise;
        $this->services[$correlationId] = $serviceName;
    }
public function add ( string $ serviceName , Promise $ promise ) { $ correlationId = $ this -> getPromiseCorrelationId ( $ promise ) ; $ this -> promises [ $ correlationId ] = $ promise ; $ this -> services [ $ correlationId ] = $ serviceName ; }
Add query to queue

@param string $serviceName
@param Promise $promise
@throws \ReflectionException
Add query to queue