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

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

public analyze ( )
    public function analyze()
    {
        $mailerClasses = array('\\Swift', '\\PHPMailer');
        $this->atomFunctionIs('\\mail')->back('first');
        $this->prepareQuery();
        $this->atomIs('New')->outIs('NEW')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->atomIsNot(array('Variable', 'Array', 'Property', 'Staticproperty', 'Methodcall', 'Staticmethodcall'))->fullnspathIs($mailerClasses);
        $this->prepareQuery();
        $this->atomIs(array('Staticmethodcall', 'Staticproperty', 'Staticconstant'))->outIs('CLASS')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->fullnspathIs($mailerClasses);
        $this->prepareQuery();
    }
MailUsage