class DevCommand (View source)

Properties

protected string|null $color

Color of the command when output to the console.

Methods

void
__construct(string $command, string|null $name = null)

Create a new DevCommand instance.

string
name()

Get the command name.

color(string $color)

Set the command color.

blue()

Set the command color to blue.

purple()

Set the command color to purple.

pink()

Set the command color to pink.

orange()

Set the command color to orange.

green()

Set the command color to green.

yellow()

Set the command color to yellow.

array
toArray()

Get the command as an array.

Details

void __construct(string $command, string|null $name = null)

Create a new DevCommand instance.

Parameters

string $command
string|null $name

Return Value

void

string name()

Get the command name.

Return Value

string

DevCommand color(string $color)

Set the command color.

Parameters

string $color

Return Value

DevCommand

DevCommand blue()

Set the command color to blue.

Return Value

DevCommand

DevCommand purple()

Set the command color to purple.

Return Value

DevCommand

DevCommand pink()

Set the command color to pink.

Return Value

DevCommand

DevCommand orange()

Set the command color to orange.

Return Value

DevCommand

DevCommand green()

Set the command color to green.

Return Value

DevCommand

DevCommand yellow()

Set the command color to yellow.

Return Value

DevCommand

array toArray()

Get the command as an array.

Return Value

array