*/ private array $folders = []; public function __construct( private IRootFolder $rootFolder, private SystemConfig $config, ) { } public function get(string $appId): IAppData { if (!isset($this->folders[$appId])) { $this->folders[$appId] = new AppData($this->rootFolder, $this->config, $appId); } return $this->folders[$appId]; } }