protected function getWorksheetFromExternalSheet($sheet)
    {
        $worksheetFound = null;

        foreach ($this->worksheets as $worksheet) {
            if ($worksheet->getExternalSheet() === $sheet) {
                $worksheetFound = $worksheet;
                break;
            }
        }

        return $worksheetFound;
    }
protected function getWorksheetFromExternalSheet($sheet)
    {
        $worksheetFound = null;

        foreach ($this->worksheets as $worksheet) {
            if ($worksheet->getExternalSheet() === $sheet) {
                $worksheetFound = $worksheet;
                break;
            }
        }

        return $worksheetFound;
    }
protected function getWorksheetFromExternalSheet ( $ sheet ) { $ worksheetFound = null ; foreach ( $ this -> worksheets as $ worksheet ) { if ( $ worksheet -> getExternalSheet ( ) === $ sheet ) { $ worksheetFound = $ worksheet ; break ; } } return $ worksheetFound ; }
Returns the worksheet associated to the given external sheet.

@param \Box\Spout\Writer\Common\Sheet $sheet
@return WorksheetInterface|null The worksheet associated to the given external sheet or null if not found.
Returns the worksheet associated to the given external sheet .