PHP Class Metabor\Statemachine\Factory\AbstractNamedProcessDetector

Author: otischlinger
Inheritance: implements MetaborStd\Statemachine\Factory\ProcessDetectorInterface
显示文件 Open project: metabor/statemachine

Public Methods

Method Description
__construct ( ) AbstractNamedProcessDetector constructor.
addProcess ( MetaborStd\Statemachine\ProcessInterface $process )
detectProcess ( object $subject ) : MetaborStd\Statemachine\ProcessInterface
hasProcess ( string $name ) : boolean

Protected Methods

Method Description
detectProcessName ( object $subject ) : string

Method Details

__construct() public method

AbstractNamedProcessDetector constructor.
public __construct ( )

addProcess() public method

public addProcess ( MetaborStd\Statemachine\ProcessInterface $process )
$process MetaborStd\Statemachine\ProcessInterface

detectProcess() public method

public detectProcess ( object $subject ) : MetaborStd\Statemachine\ProcessInterface
$subject object
return MetaborStd\Statemachine\ProcessInterface

detectProcessName() abstract protected method

abstract protected detectProcessName ( object $subject ) : string
$subject object
return string

hasProcess() public method

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