public function getUser() { if (empty($this->user)) { $this->user = $this->getContainer()->get(User::class, [$this->user_data]); $this->user->memberships = [$this]; } return $this->user; }