public function setIdent($ident)
    {
        if ($ident === null) {
            $this->ident = null;
            return $this;
        }

        if (!is_string($ident)) {
            throw new InvalidArgumentException(
                'Ident needs to be a string'
            );
        }

        $this->ident = $ident;

        return $this;
    }
public function setIdent($ident)
    {
        if ($ident === null) {
            $this->ident = null;
            return $this;
        }

        if (!is_string($ident)) {
            throw new InvalidArgumentException(
                'Ident needs to be a string'
            );
        }

        $this->ident = $ident;

        return $this;
    }
public function setIdent ( $ ident ) { if ( $ ident === null ) { $ this -> ident = null ; return $ this ; } if ( ! is_string ( $ ident ) ) { throw new InvalidArgumentException ( 'Ident needs to be a string' ) ; } $ this -> ident = $ ident ; return $ this ; }
Set the queue item's ID.

@param  string|null $ident The unique queue item identifier.
@throws InvalidArgumentException If the identifier is not a string.
@return self
Set the queue item s ID .