public function normalize($widget) : void
    {
        $presenter = $this->figureOutPresenterClass($widget);

        if ($widget->presenter) {
            $this->checkPresentMethodExists($presenter);
            $widget->presenter = $presenter.'@present';
        }
    }
public function normalize($widget) : void
    {
        $presenter = $this->figureOutPresenterClass($widget);

        if ($widget->presenter) {
            $this->checkPresentMethodExists($presenter);
            $widget->presenter = $presenter.'@present';
        }
    }
public function normalize ( $ widget ) : void { $ presenter = $ this -> figureOutPresenterClass ( $ widget ) ; if ( $ widget -> presenter ) { $ this -> checkPresentMethodExists ( $ presenter ) ; $ widget -> presenter = $ presenter . '@present' ; } }
Figures out which method should be called as the presenter.
@param object $widget
@return void
Figures out which method should be called as the presenter .