aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-rpc/php/stubs/Composer/IO/BufferIO.php
blob: b2e84d2bdf7de8d05fe245be6a7121b55c5eac07 (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
<?php

// Generated by scripts/plugin-stub-generator; do not edit by hand.
// Proxy stub for Composer\IO\BufferIO: the public surface forwards to the Rust-side entity over RPC.

namespace Composer\IO;

use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;

class BufferIO extends ConsoleIO
{
    public function __construct(string $input = '', int $verbosity = StreamOutput::VERBOSITY_NORMAL, ?OutputFormatterInterface $formatter = null)
    {
        [$this->__rhandle, $this->__epoch] = \ShirabeRpcRuntime::callRust(0, '__shirabeConstruct', [static::class, [$input, $verbosity, $formatter]]);
        \ShirabeRustObjectRegistry::adopt($this->__rhandle, $this);
    }

    public function getOutput(): string
    {
        return \ShirabeRpcRuntime::callRust($this->__rhandle, 'getOutput', []);
    }

    public function setUserInputs(array $inputs): void
    {
        \ShirabeRpcRuntime::callRust($this->__rhandle, 'setUserInputs', [$inputs]);
    }
}