for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yoanm\JsonRpcServer\Domain\Event\Action;
use Yoanm\JsonRpcServer\Domain\JsonRpcMethodInterface;
use Yoanm\JsonRpcServer\Domain\Model\JsonRpcRequest;
/**
* Class OnMethodSuccessEvent
*
* Dispatched only in case JSON-RPC method has been successfully executed.
*/
class OnMethodSuccessEvent extends AbstractOnMethodEvent
{
const EVENT_NAME = 'json_rpc_server_skd.on_method_success';
/** @var mixed|array|null */
private $result;
* @param mixed $result
* @param JsonRpcMethodInterface $method
* @param JsonRpcRequest $jsonRpcRequest
public function __construct($result, JsonRpcMethodInterface $method, JsonRpcRequest $jsonRpcRequest)
$this->result = $result;
parent::__construct($method, $jsonRpcRequest);
}
* @return mixed
public function getResult()
return $this->result;
* @return self
public function setResult($result) : self
return $this;