| 1 | <?php |
||
| 9 | class EventInfo implements \JsonSerializable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $timestamp; |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $type; |
||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $id; |
||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $size; |
||
| 27 | /** |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | private $pos; |
||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $flag; |
||
| 35 | /** |
||
| 36 | * @var bool |
||
| 37 | */ |
||
| 38 | private $checkSum; |
||
| 39 | /** |
||
| 40 | * @var int |
||
| 41 | */ |
||
| 42 | private $sizeNoHeader; |
||
| 43 | /** |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | private $dateTime; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * EventInfo constructor. |
||
| 50 | * @param int $timestamp |
||
| 51 | * @param string $type |
||
| 52 | * @param int $id |
||
| 53 | * @param int $size |
||
| 54 | * @param int $pos |
||
| 55 | * @param string $flag |
||
| 56 | * @param bool $checkSum |
||
| 57 | */ |
||
| 58 | 54 | public function __construct( |
|
| 75 | |||
| 76 | /** |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | public function getDateTime() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @return string |
||
| 90 | */ |
||
| 91 | 54 | public function getSizeNoHeader() |
|
| 99 | |||
| 100 | /** |
||
| 101 | * @return int |
||
| 102 | */ |
||
| 103 | public function getTimestamp() |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @return string |
||
| 110 | */ |
||
| 111 | 54 | public function getType() |
|
| 115 | |||
| 116 | /** |
||
| 117 | * @return int |
||
| 118 | */ |
||
| 119 | public function getId() |
||
| 123 | |||
| 124 | /** |
||
| 125 | * @return int |
||
| 126 | */ |
||
| 127 | public function getSize() |
||
| 128 | { |
||
| 129 | return $this->size; |
||
| 130 | } |
||
| 131 | |||
| 132 | /** |
||
| 133 | * @return int |
||
| 134 | */ |
||
| 135 | public function getPos() |
||
| 139 | |||
| 140 | /** |
||
| 141 | * @return string |
||
| 142 | */ |
||
| 143 | public function getFlag() |
||
| 147 | |||
| 148 | /** |
||
| 149 | * Specify data which should be serialized to JSON |
||
| 150 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 151 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
| 152 | * which is a value of any type other than a resource. |
||
| 153 | * @since 5.4.0 |
||
| 154 | */ |
||
| 155 | public function jsonSerialize() |
||
| 159 | } |