/** * Get client status as string * * @return int * @throws \RuntimeException */ public function getClientStatusAsString() { if (!$this->hasRole("ROLE_CLIENT")) { throw new \RuntimeException('User dose not have role: ROLE_CLIENT'); } return $this->profile->getClientStatusAsString(); }