From 80631930a6ca7b64d96a89de61c8b63f302161a8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 4 Aug 2026 05:09:04 +0900 Subject: feat(plugin): generate proxy stubs for the package and repository graph Emit the eleven stubs a subscriber plugin's object-graph calls reach (BasePackage through RootPackage, the installed-repository hierarchy, RepositoryManager, InstallationManager). The generator learns the member kinds these classes need: builtin interfaces contribute no closure entries, public static properties are materialized, public instance properties forward through __get/__set, __toString forwards like a plain method, __clone throws (proxy clone semantics are still an open design question), and a subclass stub may add interfaces to its inherited surface. Co-Authored-By: Claude Fable 5 --- .../php/stubs/Composer/Package/Package.php | 114 +++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php (limited to 'crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php') diff --git a/crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php b/crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php new file mode 100644 index 00000000..5b80060d --- /dev/null +++ b/crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php @@ -0,0 +1,114 @@ +__rhandle, 'setType', [$type]); + } + + public function setTargetDir(?string $targetDir): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setTargetDir', [$targetDir]); + } + + public function setExtra(array $extra): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setExtra', [$extra]); + } + + public function setBinaries(array $binaries): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setBinaries', [$binaries]); + } + + public function setSourceType(?string $type): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setSourceType', [$type]); + } + + public function setSourceUrl(?string $url): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setSourceUrl', [$url]); + } + + public function setDistSha1Checksum(?string $sha1checksum): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setDistSha1Checksum', [$sha1checksum]); + } + + public function setReleaseDate(?\DateTimeInterface $releaseDate): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setReleaseDate', [$releaseDate]); + } + + public function setRequires(array $requires): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setRequires', [$requires]); + } + + public function setConflicts(array $conflicts): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setConflicts', [$conflicts]); + } + + public function setProvides(array $provides): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setProvides', [$provides]); + } + + public function setReplaces(array $replaces): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setReplaces', [$replaces]); + } + + public function setDevRequires(array $devRequires): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setDevRequires', [$devRequires]); + } + + public function setSuggests(array $suggests): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setSuggests', [$suggests]); + } + + public function setAutoload(array $autoload): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setAutoload', [$autoload]); + } + + public function setDevAutoload(array $devAutoload): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setDevAutoload', [$devAutoload]); + } + + public function setIncludePaths(array $includePaths): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setIncludePaths', [$includePaths]); + } + + public function setPhpExt(?array $phpExt): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setPhpExt', [$phpExt]); + } + + public function setNotificationUrl(string $notificationUrl): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setNotificationUrl', [$notificationUrl]); + } + + public function setIsDefaultBranch(bool $defaultBranch): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setIsDefaultBranch', [$defaultBranch]); + } + + public function replaceVersion(string $version, string $prettyVersion): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'replaceVersion', [$version, $prettyVersion]); + } +} -- cgit v1.3.1