You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

41 lines
725 B

<?php
namespace App\Handlers\Response;
/**
*
*
*
*/
class ResponseHandler implements ResponseHandlerInterface
{
// response
protected $response;
//
protected $source;
/**
*
* @param [type] $actions
*
*/
public function __construct($source)
{
$this->source = $source;
}
/**
*
* @param [type] $data
* @return [type]
*/
protected function processActions($data)
{
foreach($this->source->actions() as $action) {
HandlerFactory::getActionHandlerClass($action->action_handler_class);
$action = new ActionClass($this->source, $this->response, $data);
$action->run();
}
}
}