File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ public function __construct(ReaderInterface $reader, int $entries)
5151 }
5252 }
5353
54+ /**
55+ * @return StructureInterface[]
56+ */
5457 public function getEntries (): array
5558 {
5659 return $ this ->entries ;
@@ -94,31 +97,49 @@ private function read($entryTag): ?StructureInterface
9497 throw new ReadEntryException ('Entry tag ' . sprintf ('0x%04X ' , $ entryTag ) . ' is not defined. ' );
9598 }
9699
100+ /**
101+ * @return boolean
102+ */
97103 public function offsetExists ($ offset )
98104 {
99105 return isset ($ this ->entries [$ offset ]);
100106 }
101107
108+ /**
109+ * @return StructureInterface
110+ */
102111 public function offsetGet ($ offset )
103112 {
104113 return $ this ->entries [$ offset ];
105114 }
106115
116+ /**
117+ * @return int
118+ */
107119 public function count ()
108120 {
109121 return count ($ this ->entries );
110122 }
111123
124+ /**
125+ * @throws ReadOnlyException
126+ */
112127 public function offsetSet ($ offset , $ value )
113128 {
114129 throw new ReadOnlyException ('You cannot rewrite datum. The Constant Pool is read-only. ' );
115130 }
116131
132+ /**
133+ * @throws ReadOnlyException
134+ */
117135 public function offsetUnset ($ offset )
118136 {
119137 throw new ReadOnlyException ('You cannot rewrite datum. The Constant Pool is read-only. ' );
120138 }
121139
140+ /**
141+ * @return \ArrayIterator<StructureInterface>
142+ */
122143 public function getIterator ()
123144 {
124145 return new \ArrayIterator ($ this ->entries );
You can’t perform that action at this time.
0 commit comments