-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDataBlock.php
54 lines (47 loc) · 895 Bytes
/
DataBlock.php
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
45
46
47
48
49
50
51
52
53
54
<?php
namespace Aternos\Hawk;
class DataBlock
{
/**
* @var int
*/
protected int $id;
/**
* @var PaletteBlock
*/
protected PaletteBlock $paletteBlock;
/**
* @param int $id
* @param PaletteBlock $paletteBlock
*/
public function __construct(int $id, PaletteBlock $paletteBlock)
{
$this->id = $id;
$this->paletteBlock = $paletteBlock;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @codeCoverageIgnore
* @return PaletteBlock
*/
public function getPaletteBlock(): PaletteBlock
{
return $this->paletteBlock;
}
/**
* ToString override
*
* @codeCoverageIgnore
* @return string
*/
public function __toString(): string
{
return strval($this->paletteBlock);
}
}