Browse Source
feat(psalm): Add a stub for the command base class
feat(psalm): Add a stub for the command base class
Signed-off-by: Joas Schilling <coding@schilljs.com>pull/10316/head
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
3 changed files with 65 additions and 163 deletions
@ -0,0 +1,60 @@ |
|||
<?php |
|||
|
|||
namespace OC\Core\Command { |
|||
|
|||
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; |
|||
use Symfony\Component\Console\Application; |
|||
use Symfony\Component\Console\Input\InputDefinition; |
|||
use Symfony\Component\Console\Input\InputInterface; |
|||
use Symfony\Component\Console\Output\OutputInterface; |
|||
|
|||
class Base { |
|||
public const OUTPUT_FORMAT_PLAIN = 'plain'; |
|||
public const OUTPUT_FORMAT_JSON = 'json'; |
|||
public const OUTPUT_FORMAT_JSON_PRETTY = 'json_pretty'; |
|||
|
|||
protected string $defaultOutputFormat = self::OUTPUT_FORMAT_PLAIN; |
|||
|
|||
public function __construct(string $name = null) { |
|||
} |
|||
|
|||
protected function configure() { |
|||
} |
|||
|
|||
public function setName(string $name) { |
|||
} |
|||
|
|||
public function getApplication(): ?Application { |
|||
} |
|||
|
|||
public function getDefinition(): InputDefinition { |
|||
} |
|||
|
|||
protected function writeArrayInOutputFormat(InputInterface $input, OutputInterface $output, array $items, string $prefix = ' - '): void { |
|||
} |
|||
|
|||
protected function writeTableInOutputFormat(InputInterface $input, OutputInterface $output, array $items): void { |
|||
} |
|||
|
|||
protected function writeMixedInOutputFormat(InputInterface $input, OutputInterface $output, $item) { |
|||
} |
|||
|
|||
protected function valueToString($value, bool $returnNull = true): ?string { |
|||
} |
|||
|
|||
protected function abortIfInterrupted() { |
|||
} |
|||
|
|||
protected function cancelOperation() { |
|||
} |
|||
|
|||
public function run(InputInterface $input, OutputInterface $output) { |
|||
} |
|||
|
|||
public function completeOptionValues($optionName, CompletionContext $context) { |
|||
} |
|||
|
|||
public function completeArgumentValues($argumentName, CompletionContext $context) { |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue