lib/Globby/Builder/Regex.php
protected function translateTokenFromIdentifier($identifier, $value)
    {
        $result = null;

        if (array_key_exists($identifier, self::$tokenValueMap)) {
            $result = $this->translateTokenUsingMap($identifier);
        } elseif (array_key_exists($identifier, self::$tokenCallbackMap)) {
            $result = $this->translateTokenUsingCallback($identifier, $value);
        }

        return $result;
    }
protected function translateTokenFromIdentifier($identifier, $value)
    {
        $result = null;

        if (array_key_exists($identifier, self::$tokenValueMap)) {
            $result = $this->translateTokenUsingMap($identifier);
        } elseif (array_key_exists($identifier, self::$tokenCallbackMap)) {
            $result = $this->translateTokenUsingCallback($identifier, $value);
        }

        return $result;
    }
protected function translateTokenFromIdentifier ( $ identifier , $ value ) { $ result = null ; if ( array_key_exists ( $ identifier , self :: $ tokenValueMap ) ) { $ result = $ this -> translateTokenUsingMap ( $ identifier ) ; } elseif ( array_key_exists ( $ identifier , self :: $ tokenCallbackMap ) ) { $ result = $ this -> translateTokenUsingCallback ( $ identifier , $ value ) ; } return $ result ; }
Translates a token based on the identifier flavour.

@param int $identifier
@param string $value
@return string|null
Translates a token based on the identifier flavour .