public array $globalOptions
protected Application $application
private string $description
public __construct(string $name, array $callback): void
| Parameter | Type | Description |
|---|
$name | string | |
$callback | array | |
public getCallable(): void
public getDescription(): string
public getOptions(): void
public getArguments(): void
public setName(string $name): self
| Parameter | Type | Description |
|---|
$name | string | |
public setDescription(string $description): self
| Parameter | Type | Description |
|---|
$description | string | |
public setHelp(string $help): self
| Parameter | Type | Description |
|---|
$help | string | |
public addOption(string $long, ?string $short, ?string $description, ?bool $takesValue, mixed $default, ?string $valueType): self
| Parameter | Type | Description |
|---|
$long | string | |
$short | string | |
$description | string | |
$takesValue | bool | |
$default | mixed | |
$valueType | string | |
public addArgument(string $name, ?string $description, bool $required): self
| Parameter | Type | Description |
|---|
$name | string | |
$description | string | |
$required | bool | |
public findOption(string $name): ?Option
| Parameter | Type | Description |
|---|
$name | string | |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:30 +0000