protected function update()
    {
        $this->preUpdate();
        $this->data = $this->api->update($this->id, $this->data);
        $this->postUpdate();

        return $this;
    }
protected function update()
    {
        $this->preUpdate();
        $this->data = $this->api->update($this->id, $this->data);
        $this->postUpdate();

        return $this;
    }
protected function update ( ) { $ this -> preUpdate ( ) ; $ this -> data = $ this -> api -> update ( $ this -> id , $ this -> data ) ; $ this -> postUpdate ( ) ; return $ this ; }
Update the object through API

@return AbstractObject
Update the object through API