aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-rpc/php/guards/Composer/Repository/RepositorySet.php
blob: 0c846767ec967fd286b820e4e13d7aacdcd9630a (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php

// Generated by scripts/plugin-stub-generator; do not edit by hand.
// Guard for Composer\Repository\RepositorySet.
// The Rust side owns this class and the worker has no proxy for it, so this
// declaration shadows the real one: the constants and the hierarchy stay, while
// constructing it or calling anything on it raises an explicit error.

namespace Composer\Repository;

use Composer\DependencyResolver\PoolOptimizer;
use Composer\DependencyResolver\Pool;
use Composer\DependencyResolver\Request;
use Composer\DependencyResolver\SecurityAdvisoryPoolFilter;
use Composer\EventDispatcher\EventDispatcher;
use Composer\IO\IOInterface;
use Composer\Semver\Constraint\ConstraintInterface;

class RepositorySet
{
    public const ALLOW_UNACCEPTABLE_STABILITIES = 1;
    public const ALLOW_SHADOWED_REPOSITORIES = 2;

    public function __construct(string $minimumStability = 'stable', array $stabilityFlags = [], array $rootAliases = [], array $rootReferences = [], array $rootRequires = [], array $temporaryConstraints = [])
    {
        \ShirabeUnsupportedClass::fail(self::class, '__construct');
    }

    public function allowInstalledRepositories(bool $allow = true): void
    {
        \ShirabeUnsupportedClass::fail(self::class, 'allowInstalledRepositories');
    }

    public function getRootRequires(): array
    {
        \ShirabeUnsupportedClass::fail(self::class, 'getRootRequires');
    }

    public function getTemporaryConstraints(): array
    {
        \ShirabeUnsupportedClass::fail(self::class, 'getTemporaryConstraints');
    }

    public function addRepository(RepositoryInterface $repo): void
    {
        \ShirabeUnsupportedClass::fail(self::class, 'addRepository');
    }

    public function findPackages(string $name, ?ConstraintInterface $constraint = null, int $flags = 0): array
    {
        \ShirabeUnsupportedClass::fail(self::class, 'findPackages');
    }

    public function getSecurityAdvisories(array $packageNames, bool $allowPartialAdvisories, bool $ignoreUnreachable = false): array
    {
        \ShirabeUnsupportedClass::fail(self::class, 'getSecurityAdvisories');
    }

    public function getMatchingSecurityAdvisories(array $packages, bool $allowPartialAdvisories = false, bool $ignoreUnreachable = false): array
    {
        \ShirabeUnsupportedClass::fail(self::class, 'getMatchingSecurityAdvisories');
    }

    public function getProviders(string $packageName): array
    {
        \ShirabeUnsupportedClass::fail(self::class, 'getProviders');
    }

    public function isPackageAcceptable(array $names, string $stability): bool
    {
        \ShirabeUnsupportedClass::fail(self::class, 'isPackageAcceptable');
    }

    public function createPool(Request $request, IOInterface $io, ?EventDispatcher $eventDispatcher = null, ?PoolOptimizer $poolOptimizer = null, array $ignoredTypes = [], ?array $allowedTypes = null, ?SecurityAdvisoryPoolFilter $securityAdvisoryPoolFilter = null): Pool
    {
        \ShirabeUnsupportedClass::fail(self::class, 'createPool');
    }

    public function createPoolWithAllPackages(): Pool
    {
        \ShirabeUnsupportedClass::fail(self::class, 'createPoolWithAllPackages');
    }

    public function createPoolForPackage(string $packageName, ?LockArrayRepository $lockedRepo = null): Pool
    {
        \ShirabeUnsupportedClass::fail(self::class, 'createPoolForPackage');
    }

    public function createPoolForPackages(array $packageNames, ?LockArrayRepository $lockedRepo = null): Pool
    {
        \ShirabeUnsupportedClass::fail(self::class, 'createPoolForPackages');
    }
}