Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/worker/src/MWP/Event
File: ActionResponse.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* This file is part of the ManageWP Worker plugin.
[2] Fix | Delete
*
[3] Fix | Delete
* (c) ManageWP LLC <contact@managewp.com>
[4] Fix | Delete
*
[5] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[6] Fix | Delete
* file that was distributed with this source code.
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
class MWP_Event_ActionResponse extends Symfony_EventDispatcher_Event
[10] Fix | Delete
{
[11] Fix | Delete
[12] Fix | Delete
private $request;
[13] Fix | Delete
[14] Fix | Delete
private $params;
[15] Fix | Delete
[16] Fix | Delete
private $data;
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* @var MWP_Http_ResponseInterface
[20] Fix | Delete
*/
[21] Fix | Delete
private $response;
[22] Fix | Delete
[23] Fix | Delete
public function __construct(MWP_Worker_Request $request, array $params, $data)
[24] Fix | Delete
{
[25] Fix | Delete
$this->request = $request;
[26] Fix | Delete
$this->params = $params;
[27] Fix | Delete
$this->data = $data;
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* @return mixed
[32] Fix | Delete
*/
[33] Fix | Delete
public function getData()
[34] Fix | Delete
{
[35] Fix | Delete
return $this->data;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
/**
[39] Fix | Delete
* @param mixed $data
[40] Fix | Delete
*/
[41] Fix | Delete
public function setData($data)
[42] Fix | Delete
{
[43] Fix | Delete
$this->data = $data;
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
/**
[47] Fix | Delete
* @return MWP_Http_ResponseInterface|null
[48] Fix | Delete
*/
[49] Fix | Delete
public function getResponse()
[50] Fix | Delete
{
[51] Fix | Delete
return $this->response;
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
/**
[55] Fix | Delete
* @param MWP_Http_ResponseInterface|null $response
[56] Fix | Delete
*/
[57] Fix | Delete
public function setResponse(MWP_Http_ResponseInterface $response = null)
[58] Fix | Delete
{
[59] Fix | Delete
$this->response = $response;
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
/**
[63] Fix | Delete
* @return MWP_Worker_Request
[64] Fix | Delete
*/
[65] Fix | Delete
public function getRequest()
[66] Fix | Delete
{
[67] Fix | Delete
return $this->request;
[68] Fix | Delete
}
[69] Fix | Delete
[70] Fix | Delete
/**
[71] Fix | Delete
* @return array
[72] Fix | Delete
*/
[73] Fix | Delete
public function getParams()
[74] Fix | Delete
{
[75] Fix | Delete
return $this->params;
[76] Fix | Delete
}
[77] Fix | Delete
}
[78] Fix | Delete
[79] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function