| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ServerDocCreatedEvent extends DocEvent |
||
| 10 | { |
||
| 11 | const EVENT_NAME = 'json_rpc_http_server_doc.server_doc_created'; |
||
| 12 | |||
| 13 | /** @var ServerDoc */ |
||
| 14 | private $doc; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ServerDoc $doc |
||
| 18 | */ |
||
| 19 | 5 | public function __construct(ServerDoc $doc) |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return ServerDoc |
||
| 26 | */ |
||
| 27 | 5 | public function getDoc() : ServerDoc |
|
| 28 | { |
||
| 29 | 5 | return $this->doc; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param ServerDoc $doc |
||
| 34 | * |
||
| 35 | * @return ServerDocCreatedEvent |
||
| 36 | */ |
||
| 37 | 1 | public function setDoc(ServerDoc $doc) : ServerDocCreatedEvent |
|
| 42 | } |
||
| 43 | } |
||
| 44 |