PHP Interface Kraken\Runtime\Command\CommandManagerInterface

Datei anzeigen Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
__invoke ( string $name, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
execute ( string $name, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
exists ( string $name ) : boolean
export ( ) : Kraken\Runtime\Command\CommandInterface[]
get ( string $name ) : Kraken\Runtime\Command\CommandInterface | null
import ( Kraken\Runtime\Command\CommandInterface[] $commands )
remove ( string $name )
set ( string $name, Kraken\Runtime\Command\CommandInterface $command )

Method Details

__invoke() public method

public __invoke ( string $name, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$name string
$params mixed[]
return Kraken\Promise\PromiseInterface

execute() public method

public execute ( string $name, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$name string
$params mixed[]
return Kraken\Promise\PromiseInterface

exists() public method

public exists ( string $name ) : boolean
$name string
return boolean

export() public method

public export ( ) : Kraken\Runtime\Command\CommandInterface[]
return Kraken\Runtime\Command\CommandInterface[]

get() public method

public get ( string $name ) : Kraken\Runtime\Command\CommandInterface | null
$name string
return Kraken\Runtime\Command\CommandInterface | null

import() public method

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

remove() public method

public remove ( string $name )
$name string

set() public method

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