code: public function lastRow()
      {
          static $last;
  
          if (!$last) {
              $sheet = $this->sheet();
              end($sheet);
              $last = key($sheet) + 1;
          }
  
          return $last;
      }
docs: {@inheritDoc}