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

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

public analyze ( )
    public function analyze()
    {
        //constant("ThingIDs::$thing");
        // probably too weak. Needs to be completed with a check on variables built before
        $this->atomFunctionIs('\\constant')->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 0)->atomIs('String')->regexIs('code', '::')->back('first');
        $this->prepareQuery();
        //$r = new ReflectionClass('ThingIDs');
        //$id = $r->getConstant($thing);
        // probably too weak. Needs to be completed with a check on ReflectionClass
        $this->atomIs('Methodcall')->outIs('METHOD')->codeIs('getConstant')->back('first');
        $this->prepareQuery();
    }
DynamicConstantCall