public function route() { switch ($this->force) { case 0: if ($this->mobile) { $this->goToMobile(); } else { $this->goToDesktop(); } break; case 1: $this->goToDesktop(); break; case 2: $this->goToMobile(); break; } }