Exakat\Analyzer\Composer\IsComposerClass::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        $data = new Composer();
        $classes = $data->getComposerClasses();
        $classesFullNP = $this->makeFullNsPath($classes);
        $this->atomIs('Class')->outIs(array('IMPLEMENTS', 'EXTENDS'))->fullnspathIs($classesFullNP);
        $this->prepareQuery();
        $this->atomIs('Instanceof')->outIs('CLASS')->tokenIs(array('T_NS_SEPARATOR', 'T_STRING'))->atomIsNot('Array')->fullnspathIs($classesFullNP);
        $this->prepareQuery();
        $this->atomIs('Function')->outIs('ARGUMENTS')->outIs('ARGUMENT')->outIs('TYPEHINT')->fullnspathIs($classesFullNP);
        $this->prepareQuery();
        $this->atomIs('New')->outIs('NEW')->tokenIs(array('T_NS_SEPARATOR', 'T_STRING'))->atomIsNot('Array')->fullnspathIs($classesFullNP);
        $this->prepareQuery();
    }
IsComposerClass