nav = $nav; } /** * Get profile image * * @return string Profile image link * * @since 1.0.0 */ public function getProfileImage() : string { if ($this->profile === null || $this->profile->image->getPath() === '') { return UriFactory::build('Web/Timerecording/img/user_default_' . \mt_rand(1, 6) . '.png'); } return UriFactory::build($this->profile->image->getPath()); } /** * Set organizations * * @param Unit[] $organizations Organizations * * @return void * * @since 1.0.0 * @codeCoverageIgnore */ public function setOrganizations(array $organizations) : void { $this->organizations = $organizations; } }