Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/worker/src/MWP/Event
File: ActionRequest.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_ActionRequest extends Symfony_EventDispatcher_Event
[10] Fix | Delete
{
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* @var MWP_Worker_Request
[14] Fix | Delete
*/
[15] Fix | Delete
private $request;
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* @var array
[19] Fix | Delete
*/
[20] Fix | Delete
private $params;
[21] Fix | Delete
[22] Fix | Delete
private $actionDefinition;
[23] Fix | Delete
[24] Fix | Delete
public function __construct(MWP_Worker_Request $request, array $params, MWP_Action_Definition $actionDefinition)
[25] Fix | Delete
{
[26] Fix | Delete
$this->request = $request;
[27] Fix | Delete
$this->params = $params;
[28] Fix | Delete
$this->actionDefinition = $actionDefinition;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* @return MWP_Worker_Request
[33] Fix | Delete
*/
[34] Fix | Delete
public function getRequest()
[35] Fix | Delete
{
[36] Fix | Delete
return $this->request;
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* @return array
[41] Fix | Delete
*/
[42] Fix | Delete
public function getParams()
[43] Fix | Delete
{
[44] Fix | Delete
return $this->params;
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* @param array $params
[49] Fix | Delete
*/
[50] Fix | Delete
public function setParams(array $params)
[51] Fix | Delete
{
[52] Fix | Delete
$this->params = $params;
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* @return MWP_Action_Definition
[57] Fix | Delete
*/
[58] Fix | Delete
public function getActionDefinition()
[59] Fix | Delete
{
[60] Fix | Delete
return $this->actionDefinition;
[61] Fix | Delete
}
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function