izzum\statemachine\AbstractFactory::createContext PHP Method

createContext() protected method

Factory method to get a configured Context with the default Builder and persistence adapter for a concrete statemachine type.
protected createContext ( Identifier $identifier ) : Context
$identifier Identifier
return Context
    protected function createContext(Identifier $identifier)
    {
        $context = new Context($identifier, $this->createBuilder(), $this->createAdapter());
        return $context;
    }