aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-rpc/php/stubs/Composer/DependencyResolver/Operation/InstallOperation.php
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-rpc/php/stubs/Composer/DependencyResolver/Operation/InstallOperation.php')
-rw-r--r--crates/shirabe-php-rpc/php/stubs/Composer/DependencyResolver/Operation/InstallOperation.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/crates/shirabe-php-rpc/php/stubs/Composer/DependencyResolver/Operation/InstallOperation.php b/crates/shirabe-php-rpc/php/stubs/Composer/DependencyResolver/Operation/InstallOperation.php
new file mode 100644
index 00000000..6f675703
--- /dev/null
+++ b/crates/shirabe-php-rpc/php/stubs/Composer/DependencyResolver/Operation/InstallOperation.php
@@ -0,0 +1,29 @@
+<?php
+
+// Generated by scripts/plugin-stub-generator; do not edit by hand.
+// Proxy stub for Composer\DependencyResolver\Operation\InstallOperation: the public surface forwards to the Rust-side entity over RPC.
+
+namespace Composer\DependencyResolver\Operation;
+
+use Composer\Package\PackageInterface;
+
+class InstallOperation extends SolverOperation implements OperationInterface
+{
+ public function __construct(PackageInterface $package)
+ {
+ [$this->__rhandle, $this->__epoch] = \ShirabeRpcRuntime::callRust(0, '__shirabeConstruct', [static::class, [$package]]);
+ \ShirabeRustObjectRegistry::adopt($this->__rhandle, $this);
+ }
+
+ protected const TYPE = 'install';
+
+ public static function format(PackageInterface $package, bool $lock = false): string
+ {
+ return ($lock ? 'Locking ' : 'Installing ').'<info>'.$package->getPrettyName().'</info> (<comment>'.$package->getFullPrettyVersion().'</comment>)';
+ }
+
+ public function getPackage(): PackageInterface
+ {
+ return \ShirabeRpcRuntime::callRust($this->__rhandle, 'getPackage', []);
+ }
+}