Avolutions\Command\CommandCollection
implements CollectionInterface Uses CollectionTraitThe CommandCollection contains all Commands from core and app.
Properties
Property | Visibility | Type | Description |
---|---|---|---|
$items | public | array | The items of the Collection. |
Methods
Method | Visibility | Description |
---|---|---|
__construct() | public | Creates a new CommandCollection instance with all Commands added. |
count() | public | Returns the number of items in the Collection. |
getAll() | public | Returns all items of the Collection. |
getByName() | public | Returns a Command by its name. |
Property Details
Method Details
__construct()
Creates a new CommandCollection instance with all Commands added.
public
__construct(Application $Application) : mixed
Parameters
Application
$Application
Application instance.
count()
Returns the number of items in the Collection.
public
count() : int