Exakat\Analyzer\Structures\ErrorMessages::analyze PHP Метод

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

public analyze ( )
    public function analyze()
    {
        $messages = array('String', 'Concatenation', 'Integer', 'Functioncall', 'Heredoc', 'Magicconstant');
        // die('true')
        // exit ('30');
        $this->atomFunctionIs(array('\\die', '\\exit'))->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 0)->atomIs($messages);
        $this->prepareQuery();
        //  new \Exception('Message');
        $this->atomIs('New')->outIs('NEW')->atomIs('Functioncall')->isNot('fullnspath', null)->fullnspathIs('\\exception')->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 0)->atomIs($messages);
        $this->prepareQuery();
        //  new $exception('Message');
        $this->atomIs('Throw')->outIs('THROW')->atomIs('New')->outIs('NEW')->atomIsNot('Functioncall')->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 0)->atomIs($messages);
        $this->prepareQuery();
        //  new myException('Message');
        $this->atomIs('New')->outIs('NEW')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->isNot('fullnspath', null)->_as('new')->classDefinition()->analyzerIs('Exceptions/DefinedExceptions')->back('new')->outIs('ARGUMENTS')->outIs('ARGUMENT')->atomIs($messages);
        $this->prepareQuery();
    }