You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @phpstan-import-type SfItemInput from StructuredFieldProvider
28
30
* @phpstan-import-type SfItemPair from StructuredFieldProvider
29
31
* @phpstan-import-type SfTypeInput from StructuredFieldProvider
32
+
*
33
+
* @method static ?Item tryFromPair(array{0: SfItemInput, 1?: Parameters|iterable<array{0:string, 1:SfItemInput}>}|array<mixed> $pair) try to create a new instance from a Pair
34
+
* @method static ?Item tryFromRfc9651(Stringable|string $httpValue) try to create a new instance from a string using RFC9651
35
+
* @method static ?Item tryFromRfc8941(Stringable|string $httpValue) try to create a new instance from a string using RFC8941
36
+
* @method static ?Item tryFromHttpValue(Stringable|string $httpValue) try to create a new instance from a string
37
+
* @method static ?Item tryFromAssociative(Bytes|Token|DisplayString|DateTimeInterface|string|int|float|bool $value, StructuredFieldProvider|Parameters|iterable<string, SfItemInput> $parameters) try to create a new instance from a value and a parameters as associative construct
38
+
* @method static ?Item tryNew(mixed $value) try to create a new bare instance from a value
39
+
* @method static ?Item tryFromEncodedBytes(Stringable|string $value) try to create a new instance from an encoded byte sequence
40
+
* @method static ?Item tryFromDecodedBytes(Stringable|string $value) try to create a new instance from a decoded byte sequence
41
+
* @method static ?Item tryFromEncodedDisplayString(Stringable|string $value) try to create a new instance from an encoded display string
42
+
* @method static ?Item tryFromDecodedDisplayString(Stringable|string $value) try to create a new instance from a decoded display string
43
+
* @method static ?Item tryFromToken(Stringable|string $value) try to create a new instance from a token string
44
+
* @method static ?Item tryFromTimestamp(int $timestamp) try to create a new instance from a timestamp
45
+
* @method static ?Item tryFromDateFormat(string $format, string $datetime) try to create a new instance from a date format
46
+
* @method static ?Item tryFromDateString(string $datetime, DateTimeZone|string|null $timezone = null) try to create a new instance from a date string
47
+
* @method static ?Item tryFromDate(DateTimeInterface $datetime) try to create a new instance from a DateTimeInterface object
48
+
* @method static ?Item tryFromDecimal(int|float $value) try to create a new instance from a float
49
+
* @method static ?Item tryFromInteger(int|float $value) try to create a new instance from an integer
30
50
*/
31
51
finalclass Item
32
52
{
@@ -47,6 +67,32 @@ private function __construct(Token|Bytes|DisplayString|DateTimeInterface|int|flo
0 commit comments