public function replaceAttributes(array $attrs) {
        $url = "entities/{$this->_id}/attrs";

        if ($this->_type) {
            $url .= "?type={$this->_type}";
        }

        $updateEntity = new ContextFactory($attrs);
        return $this->_orion->put($url, $updateEntity);
    }
public function replaceAttributes(array $attrs) {
        $url = "entities/{$this->_id}/attrs";

        if ($this->_type) {
            $url .= "?type={$this->_type}";
        }

        $updateEntity = new ContextFactory($attrs);
        return $this->_orion->put($url, $updateEntity);
    }
public function replaceAttributes ( array $ attrs ) { $ url = "entities/{$this->_id}/attrs" ; if ( $ this -> _type ) { $ url .= "?type={$this->_type}" ; } $ updateEntity = new ContextFactory ( $ attrs ) ; return $ this -> _orion -> put ( $ url , $ updateEntity ) ; }
Replace all entity Attributes
@param array $attrs
@return \Orion\Utils\HttpRequest
Replace all entity Attributes