-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathHeader.php
More file actions
44 lines (37 loc) · 857 Bytes
/
Header.php
File metadata and controls
44 lines (37 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace PubNub\Crypto;
class Header
{
public const HEADER_VERSION = 1;
private string $sentinel;
private string $cryptorId;
private string $cryptorData;
private int $length;
public function __construct(
string $sentinel,
string $cryptorId,
string $cryptorData,
int $length
) {
$this->sentinel = $sentinel;
$this->cryptorId = $cryptorId;
$this->cryptorData = $cryptorData;
$this->length = $length;
}
public function getSentinel(): string
{
return $this->sentinel;
}
public function getCryptorId(): string
{
return $this->cryptorId;
}
public function getCryptorData(): string
{
return $this->cryptorData;
}
public function getLength(): int
{
return $this->length;
}
}