/home/techb158/exp.abdallabala.com/vendor/stripe/stripe-php/lib/Util
Edit: /home/techb158/exp.abdallabala.com/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php (1856B)
container = \array_change_key_case($initial_array, \CASE_LOWER);
}
public function count()
{
return \count($this->container);
}
public function getIterator()
{
return new \ArrayIterator($this->container);
}
public function offsetSet($offset, $value)
{
$offset = static::maybeLowercase($offset);
if (null === $offset) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
public function offsetExists($offset)
{
$offset = static::maybeLowercase($offset);
return isset($this->container[$offset]);
}
public function offsetUnset($offset)
{
$offset = static::maybeLowercase($offset);
unset($this->container[$offset]);
}
public function offsetGet($offset)
{
$offset = static::maybeLowercase($offset);
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
private static function maybeLowercase($v)
{
if (\is_string($v)) {
return \strtolower($v);
}
return $v;
}
}