diff options
Diffstat (limited to 'crates/shirabe-php-rpc/php/stubs/Composer/Script')
| -rw-r--r-- | crates/shirabe-php-rpc/php/stubs/Composer/Script/Event.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/crates/shirabe-php-rpc/php/stubs/Composer/Script/Event.php b/crates/shirabe-php-rpc/php/stubs/Composer/Script/Event.php new file mode 100644 index 00000000..80afe1b7 --- /dev/null +++ b/crates/shirabe-php-rpc/php/stubs/Composer/Script/Event.php @@ -0,0 +1,37 @@ +<?php + +// Hand-written proxy stub for Composer\Script\Event, kept in the shape the future stub +// generator will output. See Composer/EventDispatcher/Event.php. + +namespace Composer\Script; + +use Composer\EventDispatcher\Event as BaseEvent; + +class Event extends BaseEvent +{ + public function getComposer(): \Composer\Composer + { + return \ShirabeRpcRuntime::callRust($this->__rhandle, 'getComposer', []); + } + + public function getIO(): \Composer\IO\IOInterface + { + return \ShirabeRpcRuntime::callRust($this->__rhandle, 'getIO', []); + } + + public function isDevMode(): bool + { + return \ShirabeRpcRuntime::callRust($this->__rhandle, 'isDevMode', []); + } + + public function getOriginatingEvent(): ?BaseEvent + { + return \ShirabeRpcRuntime::callRust($this->__rhandle, 'getOriginatingEvent', []); + } + + public function setOriginatingEvent(BaseEvent $event): self + { + \ShirabeRpcRuntime::callRust($this->__rhandle, 'setOriginatingEvent', [$event]); + return $this; + } +} |
