*/ trait ArrayAccessTrait { /** * Whether an offset exists. * * @param string $offset * * @return bool */ public function offsetExists($offset): bool { return array_key_exists($offset, $this->DataProvider_DATA); } /** * Offset to retrieve. * * @param string $offset * * @return array */ public function offsetGet($offset): array { return $this->DataProvider_DATA[$offset]; } /** * Assign a value to the specified offset. * No function since data set is read only. * * @param string $offset * @param array $value */ public function offsetSet($offset, $value) { // $this->DataProvider_DATA[$offset]=$value; } /** * Unset an offset. * No function since data set is read only. * * @param string $offset */ public function offsetUnset($offset) { // unset($this->DataProvider_DATA[$offset]); } }