db; $this->client = $db->idobc->where("clientId", $id)->limit(1)->fetch(); if (!$this->client) { throw new \Exception("There is no client with this id"); } } public function getClientSecret() { return $this->client['clientSecret']; } public function getClientRedirectURI() { return $this->client['redirectUri']; } public function getClientName() { return $this->client['naam']; } public function getClientRekening() { return $this->client['rekeningnr']; } }