MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / offsetGet

Method offsetGet

benches/fixtures/yii/Model.php:1024–1027  ·  view source on GitHub ↗

* Returns the element at the specified offset. * This method is required by the SPL interface [[\ArrayAccess]]. * It is implicitly called when you use something like `$value = $model[$offset];`. * @param mixed $offset the offset to retrieve element. * @return mixed the element at the offset, null if no element is found at the offset */

($offset)

Source from the content-addressed store, hash-verified

1022 * @return mixed the element at the offset, null if no element is found at the offset
1023 */
1024 public function offsetGet($offset)
1025 {
1026 return $this->$offset;
1027 }
1028
1029 /**
1030 * Sets the element at the specified offset.

Calls

no outgoing calls

Tested by

no test coverage detected