Lines Matching refs:offset
21 * A mapping between lower key and original key (ie offset)
53 public function offsetSet($offset, $value): void
56 if (is_null($offset)) {
57 LogUtility::msg("The offset (key) is null and this is not supported");
59 if (is_string($offset)) {
60 $lowerCaseOffset = strtolower($offset);
61 $this->_keyMapping[$lowerCaseOffset] = $offset;
62 $this->sourceArray[$offset] = $value;
64 LogUtility::msg("The offset should be a string", LogUtility::LVL_MSG_ERROR);
70 public function offsetExists($offset): bool
72 if (is_string($offset)) $offset = strtolower($offset);
73 return isset($this->_keyMapping[$offset]);
76 public function offsetUnset($offset): void
79 if (is_string($offset)) $offset = strtolower($offset);
80 $originalOffset = $this->_keyMapping[$offset] ?? null;
82 unset($this->_keyMapping[$offset]);
87 public function offsetGet($offset)
89 if (is_string($offset)) $offset = strtolower($offset);
90 $sourceOffset = $this->_keyMapping[$offset] ?? null;