Lines Matching refs:offset
278 * Whether a offset exists.
282 * @param int $offset
284 public function offsetExists($offset): bool
286 return isset($this->_results[$offset]);
294 * @param int $offset
296 * @throws Exception\InvalidException If offset doesn't exist
298 public function offsetGet($offset): Result
300 if ($this->offsetExists($offset)) {
301 return $this->_results[$offset];
312 * @param int $offset
317 public function offsetSet($offset, $value): void
323 if (!isset($this->_results[$offset])) {
327 $this->_results[$offset] = $value;
335 * @param int $offset
337 public function offsetUnset($offset): void
339 unset($this->_results[$offset]);