public function offsetGet($offset) { if (!$this->offsetExists($offset)) { throw new OutOfBoundsException('Serialiser with ID "' . $offset . '" does not exist'); } return $this->serialisers[$offset]; }