diff options
Diffstat (limited to 'crates/shirabe-php-rpc/php/stubs/Composer/Package/AliasPackage.php')
| -rw-r--r-- | crates/shirabe-php-rpc/php/stubs/Composer/Package/AliasPackage.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/crates/shirabe-php-rpc/php/stubs/Composer/Package/AliasPackage.php b/crates/shirabe-php-rpc/php/stubs/Composer/Package/AliasPackage.php new file mode 100644 index 00000000..f7e2e404 --- /dev/null +++ b/crates/shirabe-php-rpc/php/stubs/Composer/Package/AliasPackage.php @@ -0,0 +1,35 @@ +<?php + +// Generated by scripts/plugin-stub-generator; do not edit by hand. +// Proxy stub for Composer\Package\AliasPackage: the public surface forwards to the Rust-side entity over RPC. + +namespace Composer\Package; + +class AliasPackage extends BasePackage +{ + public function __construct(BasePackage $aliasOf, string $version, string $prettyVersion) + { + [$this->__rhandle, $this->__epoch] = \ShirabeRpcRuntime::callRust(0, '__shirabeConstruct', [static::class, [$aliasOf, $version, $prettyVersion]]); + \ShirabeRustObjectRegistry::adopt($this->__rhandle, $this); + } + + public function getAliasOf() + { + return \ShirabeRpcRuntime::callRust($this->__rhandle, 'getAliasOf', []); + } + + public function setRootPackageAlias(bool $value): void + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setRootPackageAlias', [$value]); + } + + public function isRootPackageAlias(): bool + { + return \ShirabeRpcRuntime::callRust($this->__rhandle, 'isRootPackageAlias', []); + } + + public function hasSelfVersionRequires(): bool + { + return \ShirabeRpcRuntime::callRust($this->__rhandle, 'hasSelfVersionRequires', []); + } +} |
