Interfaces
(all in the Centum\Interfaces\Console
namespace)
Centum\Interfaces\Console\ApplicationInterface
addCommand(
class-string<Centum\Interfaces\Console\CommandInterface> $commandClass
): void
getCommands(): array<string, class-string<Centum\Interfaces\Console\CommandInterface>>
addExceptionHandler(
class-string<Centum\Interfaces\Console\ExceptionHandlerInterface> $exceptionHandlerClass
): void
handle(
Centum\Interfaces\Console\TerminalInterface $terminal
): int
Centum\Interfaces\Console\CommandInterface
execute(
Centum\Interfaces\Console\TerminalInterface $terminal
): int
Centum\Interfaces\Console\ExceptionHandlerInterface
handle(
Centum\Interfaces\Console\TerminalInterface $terminal,
Throwable $throwable
): void
Centum\Interfaces\Console\TerminalInterface
getArguments(): Centum\Interfaces\Console\Terminal\ArgumentsInterface
getStdIn(): resource
getStdOut(): resource
getStdErr(): resource
write(
string $string
): void
writeLine(
string $string = ""
): void
writeList(
array<string> $list
): void
writeError(
string $string
): void
writeErrorLine(
string $string = ""
): void
Centum\Interfaces\Console\Terminal\ArgumentsInterface
getFilename(): string
getCommandName(): string
getParameters(): array<non-empty-string, string|bool>
getParameter(
non-empty-string $name,
mixed $defaultValue = null
): mixed
hasParameter(
non-empty-string $name
): bool
toArray(): array<string>