Google\Spreadsheet\Worksheet::getTitle PHP Method

getTitle() public method

Get the title of the worksheet
public getTitle ( ) : string
return string
    public function getTitle()
    {
        return $this->xml->title->__toString();
    }

Usage Example

 private function importWorksheet(Worksheet $worksheet)
 {
     $this->info(sprintf('Importing worksheet %s', $worksheet->getTitle()));
     $listFeed = $worksheet->getListFeed();
     foreach ($listFeed->getEntries() as $entry) {
         $values = $entry->getValues();
         try {
             $this->validate($values);
             $this->output($values);
         } catch (\RuntimeException $ex) {
             $this->error(sprintf("%s\n", $ex->getMessage()));
         }
     }
 }
All Usage Examples Of Google\Spreadsheet\Worksheet::getTitle