Exakat\Analyzer\Structures\OneDotOrObjectOperatorPerLine::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // Two expressions in a row
        $this->atomIs(array('Property', 'Methodcall'))->hasNoIn('OBJECT')->savePropertyAs('line', 'line')->outIs('OBJECT')->atomIs(array('Property', 'Methodcall'))->samePropertyAs('line', 'line')->back('first');
        $this->prepareQuery();
        // Two expressions with HTML between
        $this->atomIs('Concatenation')->outIs('CONCAT')->savePropertyAs('line', 'line')->nextSibling('CONCAT')->samePropertyAs('line', 'line')->nextSibling('CONCAT')->samePropertyAs('line', 'line')->back('first');
        $this->prepareQuery();
        // f('a'.'b', $c->d);
        $this->atomIs('Concatenation')->savePropertyAs('line', 'line')->nextSibling('ARGUMENT')->atomIs(array('Concatenation', 'Methodcall', 'Property'))->samePropertyAs('line', 'line')->inIs('ARGUMENT')->inIs('ARGUMENTS');
        $this->prepareQuery();
    }
OneDotOrObjectOperatorPerLine