Exakat\Analyzer\Type\StringHoldAVariable::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // String that has a PHP variables but ' as delimiters
        $this->atomIs('String')->is('delimiter', "'")->regexIs('noDelimiter', '[^\\\\\\\\]\\\\\\$[a-zA-Z_\\\\x7f-\\\\xff][a-zA-Z0-9_\\\\x7f-\\\\xff]*');
        $this->prepareQuery();
        // variable inside a NOWDOC
        $this->atomIs('Heredoc')->is('heredoc', false)->outIs('CONCAT')->regexIs('code', '\\\\\\$[a-zA-Z_\\\\x7f-\\\\xff][a-zA-Z0-9_\\\\x7f-\\\\xff]*');
        $this->prepareQuery();
        // <<<NOWDOC NOWDOC (NOWDOC or HEREDOC with wrong syntax)
        $this->atomIs('Heredoc')->savePropertyAs('code', 'd')->outIs('CONCAT')->regexIs('code', '" + d + "')->back('first');
        $this->prepareQuery();
    }
StringHoldAVariable