public function setId($id)
    {
        if ($this->_id !== null && $this->_id !== $id) {
            throw new ClientException('Should not update the id of an existing collection');
        }

        return $this->_id = (string) $id;
    }
public function setId($id)
    {
        if ($this->_id !== null && $this->_id !== $id) {
            throw new ClientException('Should not update the id of an existing collection');
        }

        return $this->_id = (string) $id;
    }
public function setId ( $ id ) { if ( $ this -> _id !== null && $ this -> _id !== $ id ) { throw new ClientException ( 'Should not update the id of an existing collection' ) ; } return $ this -> _id = ( string ) $ id ; }
Set the collection id

This will throw if the id of an existing collection gets updated to some other id

@throws ClientException

@param mixed $id - collection id

@return bool
Set the collection id