Exakat\Analyzer\Classes\NoSelfReferencingConstant::analyze PHP Метод

analyze() публичный Метод

public analyze ( )
    public function analyze()
    {
        // const c = self::b
        // const c = self::b + 1
        $this->atomIs('Const')->hasClassInterface()->outIs('CONST')->_as('results')->outIs('VALUE')->atomInside('Staticconstant')->outIs('CLASS')->codeIs('self')->back('results');
        $this->prepareQuery();
        // const c = a::b
        // const c = a::b + 1
        $this->atomIs('Const')->hasClassInterface()->goToClassInterface()->savePropertyAs('fullnspath', 'classe')->back('first')->outIs('CONST')->_as('results')->outIs('NAME')->savePropertyAs('code', 'constante')->inIs('NAME')->outIs('VALUE')->atomInside('Staticconstant')->outIs('CLASS')->samePropertyAs('fullnspath', 'classe')->inIs('CLASS')->outIs('CONSTANT')->samePropertyAs('code', 'constante')->back('results');
        $this->prepareQuery();
    }
NoSelfReferencingConstant