src/Parser/FieldParser.php
private function splitVariantAndParamTokens(array $tokenBundle, $fromField)
    {
        if (PreferenceInterface::MIME === $fromField) {
            $this->validateBundleMimeVariant($tokenBundle);
            $variantTokenList = array_slice($tokenBundle, 0, 3);
            $paramTokenList = array_slice($tokenBundle, 3);
        } else {
            $variantTokenList = array_slice($tokenBundle, 0, 1);
            $paramTokenList = array_slice($tokenBundle, 1);
        }

        return array($variantTokenList, $paramTokenList);
    }
private function splitVariantAndParamTokens(array $tokenBundle, $fromField)
    {
        if (PreferenceInterface::MIME === $fromField) {
            $this->validateBundleMimeVariant($tokenBundle);
            $variantTokenList = array_slice($tokenBundle, 0, 3);
            $paramTokenList = array_slice($tokenBundle, 3);
        } else {
            $variantTokenList = array_slice($tokenBundle, 0, 1);
            $paramTokenList = array_slice($tokenBundle, 1);
        }

        return array($variantTokenList, $paramTokenList);
    }
private function splitVariantAndParamTokens ( array $ tokenBundle , $ fromField ) { if ( PreferenceInterface :: MIME === $ fromField ) { $ this -> validateBundleMimeVariant ( $ tokenBundle ) ; $ variantTokenList = array_slice ( $ tokenBundle , 0 , 3 ) ; $ paramTokenList = array_slice ( $ tokenBundle , 3 ) ; } else { $ variantTokenList = array_slice ( $ tokenBundle , 0 , 1 ) ; $ paramTokenList = array_slice ( $ tokenBundle , 1 ) ; } return array ( $ variantTokenList , $ paramTokenList ) ; }
Splits the token list into variant & parameter arrays.

@throws InvalidVariantException

@param array<string> $tokenBundle
@param string $fromField

@return string[][]
Splits the token list into variant & parameter arrays .