Kraken\Loop\LoopExtendedInterface::setFlowController PHP Method

setFlowController() public method

Set FlowController used by model.
public setFlowController ( mixed $flowController )
$flowController mixed
    public function setFlowController($flowController);

Usage Example

Exemplo n.º 1
0
 /**
  * @dataProvider loopsProvider
  * @param LoopExtendedInterface|LoopModelInterface|mixed $loop
  */
 public function testApiSetFlowController_SetsFlowController($loop)
 {
     $controller = new FlowController();
     $loop->setFlowController($controller);
     $this->assertSame($controller, $loop->getFlowController());
     unset($controller);
     unset($loop);
 }