public function setQueueId($id)
    {
        if ($id === null) {
            $this->queueId = null;
            return $this;
        }

        if (!is_string($id)) {
            throw new InvalidArgumentException(
                'Queue ID must be a string'
            );
        }

        $this->queueId = $id;

        return $this;
    }
public function setQueueId($id)
    {
        if ($id === null) {
            $this->queueId = null;
            return $this;
        }

        if (!is_string($id)) {
            throw new InvalidArgumentException(
                'Queue ID must be a string'
            );
        }

        $this->queueId = $id;

        return $this;
    }
public function setQueueId ( $ id ) { if ( $ id === null ) { $ this -> queueId = null ; return $ this ; } if ( ! is_string ( $ id ) ) { throw new InvalidArgumentException ( 'Queue ID must be a string' ) ; } $ this -> queueId = $ id ; return $ this ; }
Set the queue's ID.

@param string|null $id The unique queue identifier.
@throws InvalidArgumentException If the ID isn't a string.
@return self
Set the queue s ID .