aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-rpc/php/stubs/Composer/Package/AliasPackage.php
blob: f7e2e404fdc7f816b204add5cce257b9dae84ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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', []);
    }
}