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

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

public analyze ( )
    public function analyze()
    {
        // if ($a) $b = 2; else $b = 3;
        $this->atomIs('Ifthen')->outIs('THEN')->is('count', 1)->outWithRank('ELEMENT', 0)->atomIs('Assignation')->outIs('LEFT')->savePropertyAs('fullcode', 'a')->back('first')->outIs('ELSE')->is('count', 1)->outWithRank('ELEMENT', 0)->atomIs('Assignation')->outIs('LEFT')->samePropertyAs('fullcode', 'a')->back('first');
        $this->prepareQuery();
    }
ShouldMakeTernary