Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
openai-php
/
client
/
src
/
ValueObjects
Location:
/home/zoteqbgb/public_html/vendor/openai-php/client/src/ValueObjects
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: ResourceUri.php
<?php declare(strict_types=1); namespace OpenAI\ValueObjects; use OpenAI\Contracts\StringableContract; /** * @internal */ final class ResourceUri implements StringableContract { /** * Creates a new ResourceUri value object. */ private function __construct(private readonly string $uri) { // .. } /** * Creates a new ResourceUri value object that creates the given resource. */ public static function create(string $resource): self { return new self($resource); } /** * Creates a new ResourceUri value object that uploads to the given resource. */ public static function upload(string $resource): self { return new self($resource); } /** * Creates a new ResourceUri value object that lists the given resource. */ public static function list(string $resource): self { return new self($resource); } /** * Creates a new ResourceUri value object that retrieves the given resource. */ public static function retrieve(string $resource, string $id, string $suffix): self { return new self("{$resource}/{$id}{$suffix}"); } /** * Creates a new ResourceUri value object that modifies the given resource. */ public static function modify(string $resource, string $id): self { return new self("{$resource}/{$id}"); } /** * Creates a new ResourceUri value object that retrieves the given resource content. */ public static function retrieveContent(string $resource, string $id): self { return new self("{$resource}/{$id}/content"); } /** * Creates a new ResourceUri value object that cancels the given resource. */ public static function cancel(string $resource, string $id): self { return new self("{$resource}/{$id}/cancel"); } /** * Creates a new ResourceUri value object that deletes the given resource. */ public static function delete(string $resource, string $id): self { return new self("{$resource}/{$id}"); } /** * {@inheritDoc} */ public function toString(): string { return $this->uri; } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
ApiKey.php
553 bytes
0644
2025-03-05 19:52
âï¸
ðï¸
Rename
ResourceUri.php
2,243 bytes
0644
2025-03-05 19:52
âï¸
ðï¸
Rename
Transporter
-
0755
2025-03-05 19:52
ðï¸
Rename
Chang
Apply