private function parseDivision(Division $division, string $divisionName) : \Generator
    {
        $i = 0;
        foreach ($division->getUserAgents() as $uaData) {
            $this->resetPatternId();
            $this->patternId['division']  = $division->getFileName();
            $this->patternId['useragent'] = $i;

            foreach ($this->parseUserAgent(
                $uaData,
                $division->isLite(),
                $division->isStandard(),
                $division->getSortIndex(),
                $divisionName
                ) as $ua => $properties) {
                yield $ua => $properties;
            }
            ++$i;
        }
    }
private function parseDivision(Division $division, string $divisionName) : \Generator
    {
        $i = 0;
        foreach ($division->getUserAgents() as $uaData) {
            $this->resetPatternId();
            $this->patternId['division']  = $division->getFileName();
            $this->patternId['useragent'] = $i;

            foreach ($this->parseUserAgent(
                $uaData,
                $division->isLite(),
                $division->isStandard(),
                $division->getSortIndex(),
                $divisionName
                ) as $ua => $properties) {
                yield $ua => $properties;
            }
            ++$i;
        }
    }
private function parseDivision ( Division $ division , string $ divisionName ) : \ Generator { $ i = 0 ; foreach ( $ division -> getUserAgents ( ) as $ uaData ) { $ this -> resetPatternId ( ) ; $ this -> patternId [ 'division' ] = $ division -> getFileName ( ) ; $ this -> patternId [ 'useragent' ] = $ i ; foreach ( $ this -> parseUserAgent ( $ uaData , $ division -> isLite ( ) , $ division -> isStandard ( ) , $ division -> getSortIndex ( ) , $ divisionName ) as $ ua => $ properties ) { yield $ ua => $ properties ; } ++ $ i ; } }
parses and expands a single division

@param Division $division
@param string   $divisionName

@throws \OutOfBoundsException
@throws \UnexpectedValueException

@return \Generator
parses and expands a single division