Class CommandCollection.

Implementation of a command collection.

 Methods

{@inheritdoc}

addCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $before) 

Parameters

$command

$before

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException When the command passed as $before can not be found.

{@inheritdoc}

addCommands(array $commands, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $before) 

Parameters

$commands

$before

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException When the command passed as $before can not be found.

{@inheritdoc}

clearCommands() 

{@inheritdoc}

getCommandNamed($name) 

Parameters

$name

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException when the requested command could not be found.

{@inheritdoc}

getCommands() 

{@inheritdoc}

hasCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command) 

Parameters

$command

{@inheritdoc}

hasCommandNamed($name) 

Parameters

$name

{@inheritdoc}

removeCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command) 

Parameters

$command

{@inheritdoc}

removeCommandNamed($name) 

Parameters

$name

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException when the requested command could not be found.

{@inheritdoc}

removeCommands(array $commands) 

Parameters

$commands

{@inheritdoc}

setCommands(array $commands) 

Parameters

$commands

 Properties

 

The commands contained within the collection.

$commands : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[]