PHP Class Kraken\Runtime\Command\CommandManager

Inheritance: implements Kraken\Runtime\Command\CommandManagerInterface
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$commands Kraken\Runtime\Command\CommandInterface[]

Public Methods

Method Description
__construct ( Kraken\Runtime\Command\CommandInterface[] $commands = [] )
__destruct ( )
__invoke ( $name, $params = [] )
execute ( $name, $params = [] )
exists ( $name )
export ( )
get ( $name )
import ( $commands )
remove ( $name )
set ( $name, Kraken\Runtime\Command\CommandInterface $command )

Method Details

__construct() public method

public __construct ( Kraken\Runtime\Command\CommandInterface[] $commands = [] )
$commands Kraken\Runtime\Command\CommandInterface[]

__destruct() public method

public __destruct ( )

__invoke() public method

public __invoke ( $name, $params = [] )

execute() public method

public execute ( $name, $params = [] )

exists() public method

public exists ( $name )

export() public method

public export ( )

get() public method

public get ( $name )

import() public method

public import ( $commands )

remove() public method

public remove ( $name )

set() public method

public set ( $name, Kraken\Runtime\Command\CommandInterface $command )
$command Kraken\Runtime\Command\CommandInterface

Property Details

$commands protected property

protected CommandInterface[],Kraken\Runtime\Command $commands
return Kraken\Runtime\Command\CommandInterface[]