original_string: public function getSheets()
      {
          $this->throwIfBookIsNotAvailable();
  
          $externalSheets = [];
          $worksheets = $this->getWorkbook()->getWorksheets();
  
          /** @var Common\Internal\WorksheetInterface $worksheet */
          foreach ($worksheets as $worksheet) {
              $externalSheets[] = $worksheet->getExternalSheet();
          }
  
          return $externalSheets;
      }
code: public function getSheets()
      {
          $this->throwIfBookIsNotAvailable();
  
          $externalSheets = [];
          $worksheets = $this->getWorkbook()->getWorksheets();
  
          /** @var Common\Internal\WorksheetInterface $worksheet */
          foreach ($worksheets as $worksheet) {
              $externalSheets[] = $worksheet->getExternalSheet();
          }
  
          return $externalSheets;
      }
code_tokens: public function getSheets ( ) { $ this -> throwIfBookIsNotAvailable ( ) ; $ externalSheets = [ ] ; $ worksheets = $ this -> getWorkbook ( ) -> getWorksheets ( ) ; /** @var Common\Internal\WorksheetInterface $worksheet */ foreach ( $ worksheets as $ worksheet ) { $ externalSheets [ ] = $ worksheet -> getExternalSheet ( ) ; } return $ externalSheets ; }
docstring: Returns all the workbook's sheets
  
  @api
  @return Common\Sheet[] All the workbook's sheets
  @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
docstring_tokens: Returns all the workbook s sheets