DevCommand
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.
string
name()
Get the command name.
DevCommand
color(string $color)
Set the command color.
DevCommand
blue()
Set the command color to blue.
DevCommand
purple()
Set the command color to purple.
DevCommand
pink()
Set the command color to pink.
DevCommand
orange()
Set the command color to orange.
DevCommand
green()
Set the command color to green.
DevCommand
yellow()
Set the command color to yellow.
array
toArray()
Get the command as an array.