Implements ArrayAccess::offsetGet().
public function offsetGet($offset) {
if (!is_numeric($offset)) {
throw new InvalidArgumentException('Unable to get a value with a non-numeric delta in a list.');
}
elseif (!isset($this->list[$offset])) {
$this->list[$offset] = $this
->createItem();
}
return $this->list[$offset];
}