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

analyze() public method

public analyze ( )
    public function analyze()
    {
        // Staticmethodcall
        $this->atomIs('Staticmethodcall')->outIs('CLASS')->savePropertyAs('fullnspath', 'fnp')->inIs('CLASS')->outIs('METHOD')->tokenIs('T_STRING')->savePropertyAs('code', 'method')->goToClass()->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Function").out("NAME").filter{it.get().value("code").toLowerCase() == method.toLowerCase() }.count().is(eq(0)) )')->goToAllParents()->atomIsNot('Interface')->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Function").out("NAME").filter{it.get().value("code").toLowerCase() == method.toLowerCase() }.count().is(neq(0)) )')->back('first');
        $this->prepareQuery();
        // Staticproperty
        $this->atomIs('Staticproperty')->outIs('CLASS')->savePropertyAs('fullnspath', 'fnp')->inIs('CLASS')->outIs('PROPERTY')->tokenIs('T_VARIABLE')->savePropertyAs('code', 'property')->goToClass()->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Ppp").out("PPP").coalesce(__.out("LEFT"), __.filter{true; }).filter{it.get().value("code") == property }.count().is(eq(0)) )')->goToAllParents()->atomIsNot('Interface')->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Ppp").out("PPP").coalesce(__.out("LEFT"), __.filter{true; }).filter{it.get().value("code") == property }.count().is(neq(0)) )')->back('first');
        $this->prepareQuery();
        // Staticconstant
        $this->atomIs('Staticconstant')->outIs('CLASS')->savePropertyAs('fullnspath', 'fnp')->inIs('CLASS')->outIs('CONSTANT')->tokenIs('T_STRING')->savePropertyAs('code', 'constant')->goToClass()->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Const").out("CONST").out("NAME").filter{it.get().value("code") == constant }.count().is(eq(0)) )')->goToAllParents()->atomIsNot('Interface')->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Const").out("CONST").out("NAME").filter{it.get().value("code") == constant }.count().is(neq(0)) )')->back('first');
        $this->prepareQuery();
    }
IsUpperFamily