| 1 | <?php |
||
| 10 | class LogEvent |
||
| 11 | { |
||
| 12 | /** @var string */ |
||
| 13 | private $watchKey; |
||
| 14 | |||
| 15 | /** @var string */ |
||
| 16 | private $method; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | private $collection; |
||
| 20 | |||
| 21 | /** @var array */ |
||
| 22 | private $data; |
||
| 23 | |||
| 24 | /** @var int */ |
||
| 25 | private $executionTime; |
||
| 26 | |||
| 27 | 4 | /** |
|
| 28 | * LogEvent constructor. |
||
| 29 | 4 | */ |
|
| 30 | 4 | public function __construct() |
|
| 38 | 1 | ||
| 39 | /** |
||
| 40 | 1 | * @return string |
|
| 41 | */ |
||
| 42 | public function getWatchKey(): string |
||
| 46 | 2 | ||
| 47 | /** |
||
| 48 | 2 | * @param string $watchKey |
|
| 49 | 2 | */ |
|
| 50 | public function setWatchKey(string $watchKey) |
||
| 54 | 1 | ||
| 55 | /** |
||
| 56 | 1 | * @return string |
|
| 57 | */ |
||
| 58 | public function getCollection(): string |
||
| 62 | 1 | ||
| 63 | /** |
||
| 64 | 1 | * @param string $collection |
|
| 65 | 1 | */ |
|
| 66 | public function setCollection(string $collection) |
||
| 70 | 1 | ||
| 71 | /** |
||
| 72 | 1 | * @return string |
|
| 73 | */ |
||
| 74 | public function getMethod(): string |
||
| 78 | 1 | ||
| 79 | /** |
||
| 80 | 1 | * @param string $method |
|
| 81 | */ |
||
| 82 | public function setMethod(string $method) |
||
| 86 | 1 | ||
| 87 | /** |
||
| 88 | 1 | * @return array |
|
| 89 | 1 | */ |
|
| 90 | public function getData(): array |
||
| 94 | 3 | ||
| 95 | /** |
||
| 96 | 3 | * @return string |
|
| 97 | */ |
||
| 98 | public function getDataJson(): string |
||
| 102 | 3 | ||
| 103 | /** |
||
| 104 | 3 | * @param array $data |
|
| 105 | 3 | */ |
|
| 106 | public function setData(array $data) |
||
| 110 | |||
| 111 | /** |
||
| 112 | * @return int |
||
| 113 | */ |
||
| 114 | public function getExecutionTime(): int |
||
| 118 | |||
| 119 | /** |
||
| 120 | * @param int $executionTime |
||
| 121 | */ |
||
| 122 | public function setExecutionTime(int $executionTime) |
||
| 126 | } |
||
| 127 | |||
| 128 |