diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-04 05:09:04 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-04 05:43:32 +0900 |
| commit | 80631930a6ca7b64d96a89de61c8b63f302161a8 (patch) | |
| tree | dc5acf4a8dbe74b576ec7826206defa0e3f8fba1 /crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php | |
| parent | 850b67c048bbf80d9739520d950f4dd1ed4190a5 (diff) | |
| download | php-shirabe-80631930a6ca7b64d96a89de61c8b63f302161a8.tar.gz php-shirabe-80631930a6ca7b64d96a89de61c8b63f302161a8.tar.zst php-shirabe-80631930a6ca7b64d96a89de61c8b63f302161a8.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php')
| -rw-r--r-- | crates/shirabe-php-rpc/php/stubs/Composer/Package/Package.php | 114 |
1 files changed, 114 insertions, 0 deletions
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 @@ +<?php + +// Generated by scripts/plugin-stub-generator; do not edit by hand. +// Proxy stub for Composer\Package\Package: the public surface forwards to the Rust-side entity over RPC. + +namespace Composer\Package; + +class Package extends BasePackage +{ + public function setType(string $type): void + { + \ShirabeRpcRuntime::callRust($this->__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]); + } +} |
