Akeneo\Component\SpreadsheetParser\SpreadsheetInterface::getWorksheets PHP Method

getWorksheets() public method

The keys of the array should be the indexes of the worksheets
public getWorksheets ( ) : string[]
return string[]
    public function getWorksheets();

Usage Example

 public function it_can_use_a_different_data_range(ContainerInterface $container, SpreadsheetInterface $spreadsheet)
 {
     $spreadsheet->getWorksheets()->willReturn(['tab1', 'tab2', 'tab3', 'included']);
     $this->beConstructedWith('path', array('label_row' => 2, 'data_row' => 4, 'include_worksheets' => array('/included/')));
     $this->setContainer($container);
     $this->rewind();
     $values = array(array('tab4_column1' => 'tab4_value1', 'tab4_column2' => 'tab4_value2'), array('tab4_column1' => 'tab4_value3', 'tab4_column2' => 'tab4_value4'));
     foreach ($values as $row) {
         $this->current()->shouldReturn($row);
         $this->next();
     }
     $this->valid()->shouldReturn(false);
 }
All Usage Examples Of Akeneo\Component\SpreadsheetParser\SpreadsheetInterface::getWorksheets