/** * Is client has status prospect * * @return bool */ public function hasStatusProspect() { if ($this->hasRole('ROLE_CLIENT')) { return $this->profile->hasStatusProspect(); } return false; }
/** * Get activity message * * @return string */ public function getActivityMessage() { $message = null; if ($this->hasRole('ROLE_CLIENT') && $this->profile && $this->profile->hasStatusProspect()) { $message = 'Prospect Registered'; } return $message; }