\Inhere\Console\ConcernNameAliasTrait

Class NameAliasTrait

Summary

Methods
Properties
Constants
setAlias()
resolveAlias()
hasAlias()
getAliases()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$aliases
N/A

Properties

$aliases

$aliases : array

Type

array

Methods

setAlias()

setAlias(string  $name, string|array  $alias, boolean  $validate = false) 

set name alias(es)

Parameters

string $name
string|array $alias
boolean $validate

resolveAlias()

resolveAlias(string  $alias) : mixed

Get real name by alias

Parameters

string $alias

Returns

mixed

hasAlias()

hasAlias(string  $alias) : boolean

Parameters

string $alias

Returns

boolean

getAliases()

getAliases(string  $name = '') : array

Parameters

string $name

Returns

array