aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-rpc/php/stubs/Composer/Package
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-rpc/php/stubs/Composer/Package')
-rw-r--r--crates/shirabe-php-rpc/php/stubs/Composer/Package/BasePackage.php31
1 files changed, 20 insertions, 11 deletions
diff --git a/crates/shirabe-php-rpc/php/stubs/Composer/Package/BasePackage.php b/crates/shirabe-php-rpc/php/stubs/Composer/Package/BasePackage.php
index 9fca286a..65eebd56 100644
--- a/crates/shirabe-php-rpc/php/stubs/Composer/Package/BasePackage.php
+++ b/crates/shirabe-php-rpc/php/stubs/Composer/Package/BasePackage.php
@@ -48,6 +48,26 @@ abstract class BasePackage implements PackageInterface, \ShirabeRustStub
\ShirabeRustObjectRegistry::adopt($this->__rhandle, $this);
}
+ public function __get($name)
+ {
+ return \ShirabeRpcRuntime::callRust($this->__rhandle, '__get', [$name]);
+ }
+
+ public function __set($name, $value): void
+ {
+ \ShirabeRpcRuntime::callRust($this->__rhandle, '__set', [$name, $value]);
+ }
+
+ public function __isset($name): bool
+ {
+ return \ShirabeRpcRuntime::callRust($this->__rhandle, '__isset', [$name]);
+ }
+
+ public function __unset($name): void
+ {
+ \ShirabeRpcRuntime::callRust($this->__rhandle, '__unset', [$name]);
+ }
+
public function __construct(string $name)
{
[$this->__rhandle, $this->__epoch] = \ShirabeRpcRuntime::callRust(0, '__shirabeConstruct', [static::class, [$name]]);
@@ -76,17 +96,6 @@ abstract class BasePackage implements PackageInterface, \ShirabeRustStub
];
public static $stabilities = self::STABILITIES;
- /** The real class declares public properties; every access forwards to the entity. */
- public function __get($name)
- {
- return \ShirabeRpcRuntime::callRust($this->__rhandle, '__get', [$name]);
- }
-
- public function __set($name, $value): void
- {
- \ShirabeRpcRuntime::callRust($this->__rhandle, '__set', [$name, $value]);
- }
-
public static function packageNameToRegexp(string $allowPattern, string $wrap = '{^%s$}i'): string
{
$cleanedAllowPattern = str_replace('\\*', '.*', preg_quote($allowPattern));