aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-rpc/php/guards/Composer/Cache.php
blob: 286b262c6d961e3a0aa8d72e4673a90ed251b38a (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php

// Generated by scripts/plugin-stub-generator; do not edit by hand.
// Guard for Composer\Cache.
// 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;

use Composer\IO\IOInterface;
use Composer\Util\Filesystem;

class Cache
{
    public function __construct(IOInterface $io, string $cacheDir, string $allowlist = 'a-z0-9._', ?Filesystem $filesystem = null, bool $readOnly = false)
    {
        \ShirabeUnsupportedClass::fail(self::class, '__construct');
    }

    public function setReadOnly(bool $readOnly)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'setReadOnly');
    }

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

    public static function isUsable(string $path)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'isUsable');
    }

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

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

    public function read(string $file)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'read');
    }

    public function write(string $file, string $contents)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'write');
    }

    public function copyFrom(string $file, string $source)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'copyFrom');
    }

    public function copyTo(string $file, string $target)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'copyTo');
    }

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

    public function remove(string $file)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'remove');
    }

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

    public function getAge(string $file)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'getAge');
    }

    public function gc(int $ttl, int $maxSize)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'gc');
    }

    public function gcVcsCache(int $ttl): bool
    {
        \ShirabeUnsupportedClass::fail(self::class, 'gcVcsCache');
    }

    public function sha1(string $file)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'sha1');
    }

    public function sha256(string $file)
    {
        \ShirabeUnsupportedClass::fail(self::class, 'sha256');
    }

    protected function getFinder()
    {
        \ShirabeUnsupportedClass::fail(self::class, 'getFinder');
    }
}