reader = $reader; for ($i = 0; $i < $entries; $i++) { $this->entries[$i] = new MethodInfo($reader); $this->entries[$i]->setConstantPool($constantPool); $this->entries[$i]->setDebugTool($debugTool); $this->entries[$i]->execute(); } } /** * @return MethodInfo[] */ public function getEntries() { return $this->entries; } /** * @param int $offset * @return bool */ public function offsetExists($offset) { return isset($this->entries[$offset]); } /** * @param int $offset * @return MethodInfo */ public function offsetGet($offset) { return $this->entries[$offset]; } /** * @return int */ public function count() { return count($this->entries); } /** * @throws ReadOnlyException */ public function offsetSet($offset, $value) { throw new ReadOnlyException('You cannot rewrite datum. The Interface Pool is read-only.'); } /** * @throws ReadOnlyException */ public function offsetUnset($offset) { throw new ReadOnlyException('You cannot rewrite datum. The Interface Pool is read-only.'); } /** * @return \ArrayIterator */ public function getIterator() { return new \ArrayIterator($this->entries); } }