for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yoanm\SymfonyJsonRpcHttpServerDoc\Event;
use Yoanm\JsonRpcServer\Domain\JsonRpcMethodInterface;
use Yoanm\JsonRpcServerDoc\Domain\Model\MethodDoc;
/**
* Class MethodDocCreatedEvent
*/
class MethodDocCreatedEvent extends DocEvent
{
const EVENT_NAME = 'json_rpc_http_server_doc.method_doc_created';
/** @var MethodDoc */
private $doc;
/** @var JsonRpcMethodInterface|null */
private $method;
* @param MethodDoc $doc
public function __construct(MethodDoc $doc)
$this->doc = $doc;
}
* @return MethodDoc
public function getDoc() : MethodDoc
return $this->doc;
* @return null|JsonRpcMethodInterface
public function getMethod() : ?JsonRpcMethodInterface
return $this->method;
* @param JsonRpcMethodInterface $method
*
* @return MethodDocCreatedEvent
public function setMethod(JsonRpcMethodInterface $method) : MethodDocCreatedEvent
$this->method = $method;
return $this;
public function setDoc(MethodDoc $doc) : MethodDocCreatedEvent