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.
 

39 lines
700 B

<?php
namespace App\Handlers\Actions;
/**
*
*
*
*/
class ActionHandler implements ActionHandlerInterface
{
// data to process in a action
protected $data;
/**
*
* @param [type] $data
* @return [type]
*/
protected function processActions($source, $response, $data)
{
foreach($this->source->actions() as $action) {
HandlerFactory::getActionHandlerClass($action->response_handler_class);
$action = new ActionClass($this->source, $data);
$action->run();
}
}
/**
*
* @param mixed $data
*
*/
public function __construct($data)
{
$this->data = $data;
}
}