Skip to content

Commit 5cc061f

Browse files
committed
chore: adds spacing to since tags
1 parent 863a07c commit 5cc061f

File tree

8 files changed

+23
-0
lines changed

8 files changed

+23
-0
lines changed

src/Common/AbstractEnum.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ abstract class AbstractEnum
5858
* Constructor is private to ensure instances are created through static methods.
5959
*
6060
* @since n.e.x.t
61+
*
6162
* @param string $value The enum value.
6263
* @param string $name The constant name.
6364
*/
@@ -71,6 +72,7 @@ final private function __construct(string $value, string $name)
7172
* Provides read-only access to properties.
7273
*
7374
* @since n.e.x.t
75+
*
7476
* @param string $property The property name.
7577
* @return mixed The property value.
7678
* @throws BadMethodCallException If property doesn't exist.
@@ -90,6 +92,7 @@ final public function __get(string $property)
9092
* Prevents property modification.
9193
*
9294
* @since n.e.x.t
95+
*
9396
* @param string $property The property name.
9497
* @param mixed $value The value to set.
9598
* @throws BadMethodCallException Always, as enum properties are read-only.
@@ -105,6 +108,7 @@ final public function __set(string $property, $value): void
105108
* Creates an enum instance from a value, throws exception if invalid.
106109
*
107110
* @since n.e.x.t
111+
*
108112
* @param string $value The enum value.
109113
* @return static The enum instance.
110114
* @throws InvalidArgumentException If the value is not valid.
@@ -124,6 +128,7 @@ final public static function from(string $value): self
124128
* Tries to create an enum instance from a value, returns null if invalid.
125129
*
126130
* @since n.e.x.t
131+
*
127132
* @param string $value The enum value.
128133
* @return static|null The enum instance or null.
129134
*/
@@ -142,6 +147,7 @@ final public static function tryFrom(string $value): ?self
142147
* Gets all enum cases.
143148
*
144149
* @since n.e.x.t
150+
*
145151
* @return static[] Array of all enum instances.
146152
*/
147153
final public static function cases(): array
@@ -158,6 +164,7 @@ final public static function cases(): array
158164
* Checks if this enum has the same value as the given value.
159165
*
160166
* @since n.e.x.t
167+
*
161168
* @param string|self $other The value or enum to compare.
162169
* @return bool True if values are equal.
163170
*/
@@ -174,6 +181,7 @@ final public function equals($other): bool
174181
* Checks if this enum is the same instance type and value as another enum.
175182
*
176183
* @since n.e.x.t
184+
*
177185
* @param self $other The other enum to compare.
178186
* @return bool True if enums are identical.
179187
*/
@@ -186,6 +194,7 @@ final public function is(self $other): bool
186194
* Gets all valid values for this enum.
187195
*
188196
* @since n.e.x.t
197+
*
189198
* @return array<string, string> Map of constant names to values.
190199
*/
191200
final public static function getValues(): array
@@ -197,6 +206,7 @@ final public static function getValues(): array
197206
* Checks if a value is valid for this enum.
198207
*
199208
* @since n.e.x.t
209+
*
200210
* @param string $value The value to check.
201211
* @return bool True if value is valid.
202212
*/
@@ -209,6 +219,7 @@ final public static function isValidValue(string $value): bool
209219
* Gets or creates a singleton instance for the given value and name.
210220
*
211221
* @since n.e.x.t
222+
*
212223
* @param string $value The enum value.
213224
* @param string $name The constant name.
214225
* @return static The enum instance.
@@ -234,6 +245,7 @@ private static function getInstance(string $value, string $name): self
234245
* Gets all constants for this enum class.
235246
*
236247
* @since n.e.x.t
248+
*
237249
* @return array<string, string> Map of constant names to values.
238250
* @throws \RuntimeException If invalid constant found.
239251
*/
@@ -285,6 +297,7 @@ final protected static function getConstants(): array
285297
* Handles dynamic method calls for enum checking.
286298
*
287299
* @since n.e.x.t
300+
*
288301
* @param string $name The method name.
289302
* @param array<mixed> $arguments The method arguments.
290303
* @return bool True if the enum value matches.
@@ -311,6 +324,7 @@ final public function __call(string $name, array $arguments): bool
311324
* Handles static method calls for enum creation.
312325
*
313326
* @since n.e.x.t
327+
*
314328
* @param string $name The method name.
315329
* @param array<mixed> $arguments The method arguments.
316330
* @return static The enum instance.
@@ -334,6 +348,7 @@ final public static function __callStatic(string $name, array $arguments): self
334348
* Converts camelCase to CONSTANT_CASE.
335349
*
336350
* @since n.e.x.t
351+
*
337352
* @param string $camelCase The camelCase string.
338353
* @return string The CONSTANT_CASE version.
339354
*/
@@ -350,6 +365,7 @@ private static function camelCaseToConstant(string $camelCase): string
350365
* Returns string representation of the enum.
351366
*
352367
* @since n.e.x.t
368+
*
353369
* @return string The enum value.
354370
*/
355371
final public function __toString(): string

src/Messages/Enums/MessagePartTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Enum for message part types.
1111
*
1212
* @since n.e.x.t
13+
*
1314
* @method static self text() Creates an instance for TEXT type.
1415
* @method static self inlineFile() Creates an instance for INLINE_FILE type.
1516
* @method static self remoteFile() Creates an instance for REMOTE_FILE type.

src/Messages/Enums/MessageRoleEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Enum for message roles in AI conversations.
1111
*
1212
* @since n.e.x.t
13+
*
1314
* @method static self user() Creates an instance for USER role.
1415
* @method static self model() Creates an instance for MODEL role.
1516
* @method static self system() Creates an instance for SYSTEM role.

src/Messages/Enums/ModalityEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Enum for input/output modalities.
1111
*
1212
* @since n.e.x.t
13+
*
1314
* @method static self text() Creates an instance for TEXT modality.
1415
* @method static self document() Creates an instance for DOCUMENT modality.
1516
* @method static self image() Creates an instance for IMAGE modality.

src/Operations/Enums/OperationStateEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Enum for operation states.
1111
*
1212
* @since n.e.x.t
13+
*
1314
* @method static self starting() Creates an instance for STARTING state.
1415
* @method static self processing() Creates an instance for PROCESSING state.
1516
* @method static self succeeded() Creates an instance for SUCCEEDED state.

src/Providers/Enums/ProviderTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Enum for provider types.
1111
*
1212
* @since n.e.x.t
13+
*
1314
* @method static self cloud() Creates an instance for CLOUD type.
1415
* @method static self server() Creates an instance for SERVER type.
1516
* @method static self client() Creates an instance for CLIENT type.

src/Providers/Enums/ToolTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Enum for tool types.
1111
*
1212
* @since n.e.x.t
13+
*
1314
* @method static self functionDeclarations() Creates an instance for FUNCTION_DECLARATIONS type.
1415
* @method static self webSearch() Creates an instance for WEB_SEARCH type.
1516
* @method bool isFunctionDeclarations() Checks if the type is FUNCTION_DECLARATIONS.

src/Results/Enums/FinishReasonEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Enum for finish reasons of AI generation.
1111
*
1212
* @since n.e.x.t
13+
*
1314
* @method static self stop() Creates an instance for STOP reason.
1415
* @method static self length() Creates an instance for LENGTH reason.
1516
* @method static self contentFilter() Creates an instance for CONTENT_FILTER reason.

0 commit comments

Comments
 (0)