Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Webmozart
Console
Util
SimilarCommandName
PHP Class Webmozart\Console\Util\SimilarCommandName
Since:
1.0
Author:
Bernhard Schussek (
[email protected]
)
显示文件
Open project: webmozart/console
Class Usage Examples
Public Methods
Method
Description
find
(
string
$commandName
,
CommandCollection
$commands
) :
string[]
Searches a command collection for similar names.
Private Methods
Method
Description
__construct
( )
filterDuplicates
(
array
$names
,
CommandCollection
$commands
)
Method Details
find()
public
static
method
Searches a command collection for similar names.
public
static
find
(
string
$commandName
,
CommandCollection
$commands
) :
string[]
$commandName
string
The command name that was not found.
$commands
Webmozart\Console\Api\Command\CommandCollection
The available commands.
return
string[]
The names of similar commands.