Google\Spreadsheet\CellEntry::update PHP Method

update() public method

Update the cell value
public update ( string $value ) : null
$value string Can be a simple constant value or a formula
return null
    public function update($value)
    {
        $entry = new \SimpleXMLElement("\n            <entry\n                xmlns=\"http://www.w3.org/2005/Atom\"\n                xmlns:gs=\"http://schemas.google.com/spreadsheets/2006\">\n            </entry>\n        ");
        $child = $entry->addChild("xmlns:gs:cell");
        $child->addAttribute("row", $this->row);
        $child->addAttribute("col", $this->column);
        $child->addAttribute("inputValue", $value);
        $res = ServiceRequestFactory::getInstance()->post($this->postUrl, $entry->asXML());
        $this->xml = new \SimpleXMLElement($res);
    }