src/Model/Queue/Declaration.php
public function exclusive(): self
    {
        if ($this->isPassive()) {
            throw new ExclusivePassiveDeclarationNotAllowed;
        }

        $self = clone $this;
        $self->exclusive = true;

        return $self;
    }
public function exclusive(): self
    {
        if ($this->isPassive()) {
            throw new ExclusivePassiveDeclarationNotAllowed;
        }

        $self = clone $this;
        $self->exclusive = true;

        return $self;
    }
public function exclusive ( ) : self { if ( $ this -> isPassive ( ) ) { throw new ExclusivePassiveDeclarationNotAllowed ; } $ self = clone $ this ; $ self -> exclusive = true ; return $ self ; }
Make the queue only accessible to the current connection
Make the queue only accessible to the current connection