src/Tokenizer/Parser/UserDefined.php
protected static function getUserDefinedVariableString(&$string)
    {
        $returnData = [
            Tokenizer::TOKEN_VALUE => null,
            Tokenizer::TOKEN_TYPE => Tokenizer::TOKEN_TYPE_VARIABLE,
        ];

        self::setTokenValueStartingWithAtSymbolAndWrapped($returnData, $string);
        self::setTokenValueStartingWithAtSymbol($returnData, $string);

        return $returnData;
    }
protected static function getUserDefinedVariableString(&$string)
    {
        $returnData = [
            Tokenizer::TOKEN_VALUE => null,
            Tokenizer::TOKEN_TYPE => Tokenizer::TOKEN_TYPE_VARIABLE,
        ];

        self::setTokenValueStartingWithAtSymbolAndWrapped($returnData, $string);
        self::setTokenValueStartingWithAtSymbol($returnData, $string);

        return $returnData;
    }
protected static function getUserDefinedVariableString ( & $ string ) { $ returnData = [ Tokenizer :: TOKEN_VALUE => null , Tokenizer :: TOKEN_TYPE => Tokenizer :: TOKEN_TYPE_VARIABLE , ] ; self :: setTokenValueStartingWithAtSymbolAndWrapped ( $ returnData , $ string ) ; self :: setTokenValueStartingWithAtSymbol ( $ returnData , $ string ) ; return $ returnData ; }
Gets the user defined variables for in quoted or non-quoted fashion.

@param string $string

@return array
Gets the user defined variables for in quoted or non - quoted fashion .