Google\Spreadsheet\CellEntry::setCellLocation PHP Method

setCellLocation() protected method

Get the location of the cell.
protected setCellLocation ( ) : array
return array
    protected function setCellLocation()
    {
        $id = $this->xml->id->__toString();
        preg_match("@/R(\\d+)C(\\d+)@", $id, $matches);
        if (count($matches) !== 3) {
            throw new Exception("Filed to get the location of the cell");
        }
        $this->row = (int) $matches[1];
        $this->column = (int) $matches[2];
    }