Exakat\Analyzer\Php\ConstantScalarExpression::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        $validAtoms = self::$LITERALS;
        // const x = 1 + 2;
        $this->atomIs('Const')->outIs('CONST')->outIs('VALUE')->atomIsNot($validAtoms)->tokenIsNot(array('T_ARRAY', 'T_OPEN_BRACKET'))->back('first');
        $this->prepareQuery();
        // function x( $a = 3 . '3', $b = array())
        $this->atomIs('Function')->outIs('ARGUMENTS')->outIs('ARGUMENT')->outIs('DEFAULT')->atomIsNot($validAtoms)->tokenIsNot(array('T_ARRAY', 'T_OPEN_BRACKET'))->back('first');
        $this->prepareQuery();
    }
ConstantScalarExpression