public function setName($name)
    {
        assert(is_string($name));

        if ($this->_name !== null && $this->_name !== $name) {
            throw new ClientException('Should not update the name of an existing collection');
        }

        $this->_name = (string) $name;
    }
public function setName($name)
    {
        assert(is_string($name));

        if ($this->_name !== null && $this->_name !== $name) {
            throw new ClientException('Should not update the name of an existing collection');
        }

        $this->_name = (string) $name;
    }
public function setName ( $ name ) { assert ( is_string ( $ name ) ) ; if ( $ this -> _name !== null && $ this -> _name !== $ name ) { throw new ClientException ( 'Should not update the name of an existing collection' ) ; } $ this -> _name = ( string ) $ name ; }
Set the collection name

@throws ClientException

@param string $name - name

@return void
Set the collection name