Exakat\Analyzer\Classes\ShouldUseSelf::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // full nsname\classname instead of self
        $this->atomIs('Staticconstant')->hasClass()->outIs('CLASS')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->codeIsNot(array('parent', 'self'))->savePropertyAs('fullnspath', 'fns')->goToClass()->samePropertyAs('fullnspath', 'fns')->back('first');
        $this->prepareQuery();
        $this->atomIs('Staticproperty')->hasClass()->outIs('CLASS')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->codeIsNot(array('parent', 'self'))->savePropertyAs('fullnspath', 'fns')->goToClass()->samePropertyAs('fullnspath', 'fns')->back('first');
        $this->prepareQuery();
        $this->atomIs('Staticmethodcall')->hasClass()->outIs('CLASS')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->codeIsNot(array('parent', 'self'))->savePropertyAs('fullnspath', 'fns')->goToClass()->samePropertyAs('fullnspath', 'fns')->back('first');
        $this->prepareQuery();
    }
ShouldUseSelf