protected function getConsumerTokenParts(Iterator $tokens)
    {
        $token = $tokens->current();
        $subConsumers = $this->getSubConsumers();
        foreach ($subConsumers as $consumer) {
            if ($consumer->isStartToken($token)) {
                $this->advanceToNextToken($tokens, true);
                return $consumer->parseTokensIntoParts($tokens);
            }
        }
        return [$this->getPartForToken($token, false)];
    }
protected function getConsumerTokenParts(Iterator $tokens)
    {
        $token = $tokens->current();
        $subConsumers = $this->getSubConsumers();
        foreach ($subConsumers as $consumer) {
            if ($consumer->isStartToken($token)) {
                $this->advanceToNextToken($tokens, true);
                return $consumer->parseTokensIntoParts($tokens);
            }
        }
        return [$this->getPartForToken($token, false)];
    }
protected function getConsumerTokenParts ( Iterator $ tokens ) { $ token = $ tokens -> current ( ) ; $ subConsumers = $ this -> getSubConsumers ( ) ; foreach ( $ subConsumers as $ consumer ) { if ( $ consumer -> isStartToken ( $ token ) ) { $ this -> advanceToNextToken ( $ tokens , true ) ; return $ consumer -> parseTokensIntoParts ( $ tokens ) ; } } return [ $ this -> getPartForToken ( $ token , false ) ] ; }
Iterates through this consumer's sub-consumers checking if the current
token triggers a sub-consumer's start token and passes control onto that
sub-consumer's parseTokenIntoParts.  If no sub-consumer is responsible
for the current token, calls getPartForToken and returns it in an array.

@param Iterator $tokens
@return \ZBateson\MailMimeParser\Header\Part\HeaderPart[]|array
Iterates through this consumer s sub - consumers checking if the current token triggers a sub - consumer s start token and passes control onto that sub - consumer s parseTokenIntoParts . If no sub - consumer is responsible for the current token calls getPartForToken and returns it in an array .