src/Request/Api/Token.php
public static function parseTokens(array $tokens, $prefix = '', $postfix = '')
    {
        $parsedTokens = array();
        foreach (self::$tokenNames as $name) {
            $key = $prefix . $name . $postfix;
            if (isset($tokens[$key])) {
                $parsedTokens[$name] = new self($name, $tokens[$key]);
            }
        }
        return $parsedTokens;
    }
public static function parseTokens(array $tokens, $prefix = '', $postfix = '')
    {
        $parsedTokens = array();
        foreach (self::$tokenNames as $name) {
            $key = $prefix . $name . $postfix;
            if (isset($tokens[$key])) {
                $parsedTokens[$name] = new self($name, $tokens[$key]);
            }
        }
        return $parsedTokens;
    }
public static function parseTokens ( array $ tokens , $ prefix = '' , $ postfix = '' ) { $ parsedTokens = array ( ) ; foreach ( self :: $ tokenNames as $ name ) { $ key = $ prefix . $ name . $ postfix ; if ( isset ( $ tokens [ $ key ] ) ) { $ parsedTokens [ $ name ] = new self ( $ name , $ tokens [ $ key ] ) ; } } return $ parsedTokens ; }
Parses a list of token name=>value pairs and creates token instances of them.

@param array $tokens the list of token name=>value pairs.
@param string $prefix optional prefix for the token name in the list.
@param string $postfix optional postfix for the token name in the list.
@return Token[] a list of token instances.
Parses a list of token name = > value pairs and creates token instances of them .