Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AbstractCustomCommand.php
Go to the documentation of this file.
1
<?php
2
namespace
Ubiquity\devtools\cmd\commands
;
3
4
use
Ubiquity\devtools\cmd\Command
;
5
16
abstract
class
AbstractCustomCommand
extends
AbstractCmd
{
17
22
protected
$command
;
23
24
public
function
__construct
() {
25
$this->command =
new
Command
($this->
getName
(), $this->
getValue
(), $this->
getDescription
(), $this->
getAliases
(), $this->
getParameters
(), $this->
getExamples
(), $this->
getCategory
());
26
}
27
33
abstract
protected
function
getName
(): string;
34
40
abstract
protected
function
getValue
(): string;
41
47
abstract
protected
function
getDescription
(): string;
48
53
abstract
protected
function
getAliases
(): array;
54
61
abstract
protected
function
getParameters
(): array;
62
69
abstract
protected
function
getExamples
(): array;
70
76
protected
function
getCategory
() {
77
return
'custom'
;
78
}
79
85
public
function
getCommand
() {
86
return
$this->command
;
87
}
88
98
abstract
public
function
run
($config, $options, $what, ...$otherArgs);
99
}
100
Ubiquity\devtools\cmd\Command
Define a command complete desciption.
Definition
Command.php:16
Ubiquity\devtools\cmd\commands\AbstractCmd
Definition
AbstractCmd.php:7
Ubiquity\devtools\cmd\commands\AbstractCustomCommand
Definition
AbstractCustomCommand.php:16
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getParameters
getParameters()
Return the list of parameters.
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\__construct
__construct()
Definition
AbstractCustomCommand.php:24
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getCommand
getCommand()
Return the command informations.
Definition
AbstractCustomCommand.php:85
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getAliases
getAliases()
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getDescription
getDescription()
Return the command description.
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getName
getName()
Return the command name.
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\$command
$command
Definition
AbstractCustomCommand.php:22
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\run
run($config, $options, $what,... $otherArgs)
Run this command.
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getValue
getValue()
Return the command parameter name.
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getCategory
getCategory()
Return the command category.
Definition
AbstractCustomCommand.php:76
Ubiquity\devtools\cmd\commands\AbstractCustomCommand\getExamples
getExamples()
Return a list of examples.
Ubiquity\devtools\cmd\commands
Definition
AbstractCmd.php:3
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity-commands
src
Ubiquity
devtools
cmd
commands
AbstractCustomCommand.php
Generated on Sun Dec 10 2023 15:04:06 for
Ubiquity
by
doxygen
1.9.8