user = $user; } public static function get($user) { if (self::$instance === null) self::$instance = new self($user); return self::$instance; } public function getUser(): User { return $this->user; } public static function i() { return self::$instance; } }