Skip to content

Commit 9875f84

Browse files
committed
refactor: uses inheritDoct to reduce redundancy
1 parent 550acc2 commit 9875f84

16 files changed

+26
-52
lines changed

src/Files/DTO/InlineFile.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ public function getBase64Data(): string
6363
}
6464

6565
/**
66-
* Get the JSON schema for this DTO
66+
* {@inheritDoc}
6767
*
6868
* @since n.e.x.t
69-
* @return array<string, mixed> The JSON schema
7069
*/
7170
public static function getJsonSchema(): array
7271
{

src/Files/DTO/LocalFile.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ public function getPath(): string
6363
}
6464

6565
/**
66-
* Get the JSON schema for this DTO
66+
* {@inheritDoc}
6767
*
6868
* @since n.e.x.t
69-
* @return array<string, mixed> The JSON schema
7069
*/
7170
public static function getJsonSchema(): array
7271
{

src/Files/DTO/RemoteFile.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ public function getUrl(): string
6363
}
6464

6565
/**
66-
* Get the JSON schema for this DTO
66+
* {@inheritDoc}
6767
*
6868
* @since n.e.x.t
69-
* @return array<string, mixed> The JSON schema
7069
*/
7170
public static function getJsonSchema(): array
7271
{

src/Messages/DTO/Message.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ public function getParts(): array
7676
}
7777

7878
/**
79-
* Get the JSON schema for this DTO
79+
* {@inheritDoc}
8080
*
8181
* @since n.e.x.t
82-
* @return array<string, mixed> The JSON schema
8382
*/
8483
public static function getJsonSchema(): array
8584
{

src/Messages/DTO/MessagePart.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,9 @@ public function getFunctionResponse(): ?FunctionResponse
199199
}
200200

201201
/**
202-
* Get the JSON schema for this DTO
202+
* {@inheritDoc}
203203
*
204204
* @since n.e.x.t
205-
* @return array<string, mixed> The JSON schema
206205
*/
207206
public static function getJsonSchema(): array
208207
{

src/Operations/DTO/EmbeddingOperation.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,19 @@ public function __construct(string $id, OperationStateEnum $state, ?EmbeddingRes
4949
}
5050

5151
/**
52-
* Get the operation ID
52+
* {@inheritDoc}
5353
*
5454
* @since n.e.x.t
55-
* @return string The unique identifier
5655
*/
5756
public function getId(): string
5857
{
5958
return $this->id;
6059
}
6160

6261
/**
63-
* Get the current state of the operation
62+
* {@inheritDoc}
6463
*
6564
* @since n.e.x.t
66-
* @return OperationStateEnum The operation state
6765
*/
6866
public function getState(): OperationStateEnum
6967
{
@@ -82,10 +80,9 @@ public function getResult(): ?EmbeddingResult
8280
}
8381

8482
/**
85-
* Get the JSON schema for this DTO
83+
* {@inheritDoc}
8684
*
8785
* @since n.e.x.t
88-
* @return array<string, mixed> The JSON schema
8986
*/
9087
public static function getJsonSchema(): array
9188
{

src/Operations/DTO/GenerativeAiOperation.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,19 @@ public function __construct(string $id, OperationStateEnum $state, ?GenerativeAi
4949
}
5050

5151
/**
52-
* Get the operation ID
52+
* {@inheritDoc}
5353
*
5454
* @since n.e.x.t
55-
* @return string The unique identifier
5655
*/
5756
public function getId(): string
5857
{
5958
return $this->id;
6059
}
6160

6261
/**
63-
* Get the current state of the operation
62+
* {@inheritDoc}
6463
*
6564
* @since n.e.x.t
66-
* @return OperationStateEnum The operation state
6765
*/
6866
public function getState(): OperationStateEnum
6967
{
@@ -82,10 +80,9 @@ public function getResult(): ?GenerativeAiResult
8280
}
8381

8482
/**
85-
* Get the JSON schema for this DTO
83+
* {@inheritDoc}
8684
*
8785
* @since n.e.x.t
88-
* @return array<string, mixed> The JSON schema
8986
*/
9087
public static function getJsonSchema(): array
9188
{

src/Results/DTO/Candidate.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ public function getTokenCount(): int
8282
}
8383

8484
/**
85-
* Get the JSON schema for this DTO
85+
* {@inheritDoc}
8686
*
8787
* @since n.e.x.t
88-
* @return array<string, mixed> The JSON schema
8988
*/
9089
public static function getJsonSchema(): array
9190
{

src/Results/DTO/EmbeddingResult.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ public function __construct(string $id, array $embeddings, TokenUsage $tokenUsag
5555
}
5656

5757
/**
58-
* Get the result ID
58+
* {@inheritDoc}
5959
*
6060
* @since n.e.x.t
61-
* @return string The unique identifier
6261
*/
6362
public function getId(): string
6463
{
@@ -77,32 +76,29 @@ public function getEmbeddings(): array
7776
}
7877

7978
/**
80-
* Get token usage information
79+
* {@inheritDoc}
8180
*
8281
* @since n.e.x.t
83-
* @return TokenUsage Token usage statistics
8482
*/
8583
public function getTokenUsage(): TokenUsage
8684
{
8785
return $this->tokenUsage;
8886
}
8987

9088
/**
91-
* Get provider-specific metadata
89+
* {@inheritDoc}
9290
*
9391
* @since n.e.x.t
94-
* @return array<string, mixed> Provider metadata
9592
*/
9693
public function getProviderMetadata(): array
9794
{
9895
return $this->providerMetadata;
9996
}
10097

10198
/**
102-
* Get the JSON schema for this DTO
99+
* {@inheritDoc}
103100
*
104101
* @since n.e.x.t
105-
* @return array<string, mixed> The JSON schema
106102
*/
107103
public static function getJsonSchema(): array
108104
{

src/Results/DTO/GenerativeAiResult.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ public function __construct(string $id, array $candidates, TokenUsage $tokenUsag
5757
}
5858

5959
/**
60-
* Get the result ID
60+
* {@inheritDoc}
6161
*
6262
* @since n.e.x.t
63-
* @return string The unique identifier
6463
*/
6564
public function getId(): string
6665
{
@@ -79,21 +78,19 @@ public function getCandidates(): array
7978
}
8079

8180
/**
82-
* Get token usage information
81+
* {@inheritDoc}
8382
*
8483
* @since n.e.x.t
85-
* @return TokenUsage Token usage statistics
8684
*/
8785
public function getTokenUsage(): TokenUsage
8886
{
8987
return $this->tokenUsage;
9088
}
9189

9290
/**
93-
* Get provider-specific metadata
91+
* {@inheritDoc}
9492
*
9593
* @since n.e.x.t
96-
* @return array<string, mixed> Provider metadata
9794
*/
9895
public function getProviderMetadata(): array
9996
{
@@ -273,10 +270,9 @@ public function toMessages(): array
273270
}
274271

275272
/**
276-
* Get the JSON schema for this DTO
273+
* {@inheritDoc}
277274
*
278275
* @since n.e.x.t
279-
* @return array<string, mixed> The JSON schema
280276
*/
281277
public static function getJsonSchema(): array
282278
{

0 commit comments

Comments
 (0)