|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | + * This file is part of the Webmozarts Console Parallelization package. |
| 5 | + * |
| 6 | + * (c) Webmozarts GmbH <office@webmozarts.com> |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
| 12 | +declare(strict_types=1); |
| 13 | + |
| 14 | +namespace Webmozarts\Console\Parallelization\Input; |
| 15 | + |
| 16 | +use Symfony\Component\Console\Input\InputDefinition; |
| 17 | +use Symfony\Component\Console\Input\InputInterface; |
| 18 | +use Webmozarts\Console\Parallelization\UnexpectedCall; |
| 19 | + |
| 20 | +final class FakeSymfony7Input implements InputInterface |
| 21 | +{ |
| 22 | + public function __call($name, $arguments): void |
| 23 | + { |
| 24 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 25 | + } |
| 26 | + |
| 27 | + public function getFirstArgument(): ?string |
| 28 | + { |
| 29 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 30 | + } |
| 31 | + |
| 32 | + public function hasParameterOption($values, bool $onlyParams = false): bool |
| 33 | + { |
| 34 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 35 | + } |
| 36 | + |
| 37 | + public function getParameterOption(array|string $values, array|string|int|float|bool|null $default = false, bool $onlyParams = false): mixed |
| 38 | + { |
| 39 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 40 | + } |
| 41 | + |
| 42 | + public function bind(InputDefinition $definition): void |
| 43 | + { |
| 44 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 45 | + } |
| 46 | + |
| 47 | + public function validate(): void |
| 48 | + { |
| 49 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 50 | + } |
| 51 | + |
| 52 | + public function getArguments(): array |
| 53 | + { |
| 54 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 55 | + } |
| 56 | + |
| 57 | + public function getArgument(string $name): mixed |
| 58 | + { |
| 59 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 60 | + } |
| 61 | + |
| 62 | + public function setArgument(string $name, $value): void |
| 63 | + { |
| 64 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 65 | + } |
| 66 | + |
| 67 | + public function hasArgument(string $name): bool |
| 68 | + { |
| 69 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 70 | + } |
| 71 | + |
| 72 | + public function getOptions(): array |
| 73 | + { |
| 74 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 75 | + } |
| 76 | + |
| 77 | + public function getOption(string $name): mixed |
| 78 | + { |
| 79 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 80 | + } |
| 81 | + |
| 82 | + public function setOption(string $name, $value): void |
| 83 | + { |
| 84 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 85 | + } |
| 86 | + |
| 87 | + public function hasOption(string $name): bool |
| 88 | + { |
| 89 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 90 | + } |
| 91 | + |
| 92 | + public function isInteractive(): bool |
| 93 | + { |
| 94 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 95 | + } |
| 96 | + |
| 97 | + public function setInteractive(bool $interactive): void |
| 98 | + { |
| 99 | + throw UnexpectedCall::forMethod(__METHOD__); |
| 100 | + } |
| 101 | + |
| 102 | + public function __toString(): string |
| 103 | + { |
| 104 | + return 'FakeInput'; |
| 105 | + } |
| 106 | +} |
0 commit comments