protected function validateRowInRange($row)
    {
        $row = static::validateRow($row);
        if ($row > $this->rows) {
            throw new Exception('Requested Row exceeds matrix size');
        }

        return $row;
    }
protected function validateRowInRange($row)
    {
        $row = static::validateRow($row);
        if ($row > $this->rows) {
            throw new Exception('Requested Row exceeds matrix size');
        }

        return $row;
    }
protected function validateRowInRange ( $ row ) { $ row = static :: validateRow ( $ row ) ; if ( $ row > $ this -> rows ) { throw new Exception ( 'Requested Row exceeds matrix size' ) ; } return $ row ; }
Validate that a row number falls within the set of rows for this matrix

@param $row
@return int
@throws Exception
Validate that a row number falls within the set of rows for this matrix