PHP Class Metabor\Statemachine\Factory\SingleProcessDetector

Author: otischlinger
Inheritance: implements MetaborStd\Statemachine\Factory\ProcessDetectorInterface
Datei anzeigen Open project: metabor/statemachine Class Usage Examples

Public Methods

Method Description
__construct ( MetaborStd\Statemachine\ProcessInterface $process ) SingleProcessDetector constructor.
detectProcess ( object $subject ) : MetaborStd\Statemachine\ProcessInterface

Method Details

__construct() public method

SingleProcessDetector constructor.
public __construct ( MetaborStd\Statemachine\ProcessInterface $process )
$process MetaborStd\Statemachine\ProcessInterface

detectProcess() public method

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