BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
vendor
/
openai-php
/
client
/
src
/
Responses
/
Concerns
📤 Upload
📝 New File
📁 New Folder
Close
Editing: ArrayAccessible.php
<?php declare(strict_types=1); namespace OpenAI\Responses\Concerns; use BadMethodCallException; /** * @template TArray of array * * @mixin Response<TArray> */ trait ArrayAccessible { /** * {@inheritDoc} */ public function offsetExists(mixed $offset): bool { return array_key_exists($offset, $this->toArray()); } /** * {@inheritDoc} */ public function offsetGet(mixed $offset): mixed { return $this->toArray()[$offset]; // @phpstan-ignore-line } /** * {@inheritDoc} */ public function offsetSet(mixed $offset, mixed $value): never { throw new BadMethodCallException('Cannot set response attributes.'); } /** * {@inheritDoc} */ public function offsetUnset(mixed $offset): never { throw new BadMethodCallException('Cannot unset response attributes.'); } }
Save
Cancel