public function selectMethod() { switch ($this->method) { case 'HEAD': case 'GET': return $this->get(); case 'PUT': return $this->update(); case 'POST': return $this->store(); case 'DELETE': return $this->destroy(); } }