Command
class Command
Traits
Properties
protected | $signature | ||
protected | $options | ||
protected | $description | ||
protected | $argv | ||
$context | |||
$command |
Methods
Set the value of the method set{Name}Attribute
.
Extend the __isset method to check for the method get{Name}Attribute
.
Extend the __unset method to check for the method get{Name}Attribute
.
Determine if a get mutator exists for an attribute.
Get the value of an attribute using its mutator.
Determine if a set mutator exists for an attribute.
Set the value of an attribute using its mutator.
Display a colored line in the console.
Display a colored line in the console.
Make a request to end user in the console and return the user input or the default value.
No description
Return true if the options exists.
Display the help well formatted.
Return the description of command console.
Set the argv.
No description
Details
in HasAttributes at line 16
mixed
__get(string $name)
Return the value of the method get{Name}Attribute
.
in HasAttributes at line 32
__set(string $name, mixed $value)
Set the value of the method set{Name}Attribute
.
in HasAttributes at line 45
__isset(string $name)
Extend the __isset method to check for the method get{Name}Attribute
.
in HasAttributes at line 58
__unset(string $name)
Extend the __unset method to check for the method get{Name}Attribute
.
in HasAttributes at line 72
bool
hasGetMutator(string $key)
Determine if a get mutator exists for an attribute.
in HasAttributes at line 83
protected mixed
mutateAttribute(string $key)
Get the value of an attribute using its mutator.
in HasAttributes at line 94
bool
hasSetMutator(string $key)
Determine if a set mutator exists for an attribute.
in HasAttributes at line 106
protected mixed
setMutatedAttributeValue(string $key, mixed $value)
Set the value of an attribute using its mutator.
at line 29
protected
line($str)
Display a colored line in the console.
at line 40
protected
info(string $str)
Display a colored line in the console.
at line 54
protected string
ask(string $str, string $default = '')
Make a request to end user in the console and return the user input or the default value.
at line 66
__construct()
at line 107
bool|mixed
options(string $value)
Return true if the options exists.
at line 148
displayHelp()
Display the help well formatted.
at line 173
string
getDescriptionAttribute()
Return the description of command console.
at line 183
setArgvAttribute(mixed $value)
Set the argv.