1 | <?php |
||
17 | class ExtendedHeader implements ExtendedHeaderInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $size; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $flags; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $padding; |
||
33 | |||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | protected $crc32; |
||
38 | |||
39 | /** |
||
40 | * @var int |
||
41 | */ |
||
42 | protected $restrictions; |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getSize() |
||
51 | |||
52 | /** |
||
53 | * Set size in bytes |
||
54 | * |
||
55 | * @param int $size |
||
56 | * |
||
57 | * @return $this |
||
58 | */ |
||
59 | public function setSize($size) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function isFlagEnabled($flag) |
||
76 | |||
77 | /** |
||
78 | * Set flags |
||
79 | * |
||
80 | * @param array $flags |
||
81 | * |
||
82 | * @return $this |
||
83 | */ |
||
84 | public function setFlags(array $flags) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function getPadding() |
||
97 | |||
98 | /** |
||
99 | * Set padding |
||
100 | * |
||
101 | * @param int $padding |
||
102 | * |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setPadding($padding) |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function getCrc32() |
||
118 | |||
119 | /** |
||
120 | * Set CRC-32 |
||
121 | * |
||
122 | * @param int $crc32 |
||
123 | * |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function setCrc32($crc32) |
||
131 | |||
132 | /** |
||
133 | * {@inheritdoc} |
||
134 | */ |
||
135 | public function getRestrictions() |
||
139 | |||
140 | /** |
||
141 | * Set restrictions |
||
142 | * |
||
143 | * @param int $restrictions |
||
144 | * |
||
145 | * @return $this |
||
146 | */ |
||
147 | public function setRestrictions($restrictions) |
||
152 | } |
||
153 |