private function fetchParameterExpansionSymbol($variable_name, $type)
    {
        $class = new \ReflectionClass($this);
        $symbol = $class->getConstant('SYMBOL_'.strtoupper($type));
        $pos = strpos($variable_name, $symbol);

        $check_empty = substr($variable_name, ($pos - 1), 1) === ":";

        if ($check_empty) {
            $symbol = sprintf(":%s", $symbol);
        }

        return array($symbol, $check_empty);
    }
private function fetchParameterExpansionSymbol($variable_name, $type)
    {
        $class = new \ReflectionClass($this);
        $symbol = $class->getConstant('SYMBOL_'.strtoupper($type));
        $pos = strpos($variable_name, $symbol);

        $check_empty = substr($variable_name, ($pos - 1), 1) === ":";

        if ($check_empty) {
            $symbol = sprintf(":%s", $symbol);
        }

        return array($symbol, $check_empty);
    }
private function fetchParameterExpansionSymbol ( $ variable_name , $ type ) { $ class = new \ ReflectionClass ( $ this ) ; $ symbol = $ class -> getConstant ( 'SYMBOL_' . strtoupper ( $ type ) ) ; $ pos = strpos ( $ variable_name , $ symbol ) ; $ check_empty = substr ( $ variable_name , ( $ pos - 1 ) , 1 ) === ":" ; if ( $ check_empty ) { $ symbol = sprintf ( ":%s" , $ symbol ) ; } return array ( $ symbol , $ check_empty ) ; }
Fetches the parameter type symbol

@param string $variable_name The variable
@param string $type          The type of parameter expansion

@return array The symbol and if there is a empty check
Fetches the parameter type symbol