PHP Class izzum\command\Command

Concrete commands must implement the _execute() method. Intent: Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests. A concrete Command (a subclass) can (and should be) injected with contextual data via dependency injection in the constructor
Author: Rolf Vreijdenberger
Inheritance: implements izzum\command\ICommand
Datei anzeigen Open project: rolfvreijdenberger/izzum-statemachine

Public Methods

Method Description
__toString ( )
execute ( ) (non-PHPdoc)
toString ( ) : string

Protected Methods

Method Description
_execute ( )
handleException ( izzum\command\Exception $e ) hook method for logging etc.

Method Details

__toString() public method

public __toString ( )

_execute() abstract protected method

abstract protected _execute ( )

execute() final public method

(non-PHPdoc)
See also: izzum\command\ICommand::execute()
final public execute ( )

handleException() protected method

hook method for logging etc.
protected handleException ( izzum\command\Exception $e )
$e izzum\command\Exception

toString() public method

public toString ( ) : string
return string