public function doControl() { if ($this->navView->userWantsToSeePub()) { $this->viewPub(); } elseif ($this->navView->userWantsToSeeBeer()) { $this->viewBeer(); } }