BinaryCodec

Illuminate\Support\BinaryCodec

class src/Illuminate/Support/BinaryCodec.php

decode

v12.45.0 から

static

static decode(?string $value, string $format): ?string
  1. v12.45.0 追加
    変更後
    static decode(?string $value, string $format): ?string

encode

v12.45.0 から

static

static encode(Ramsey\Uuid\UuidInterface|Symfony\Component\Uid\Ulid|string|null $value, string $format): ?string
  1. v12.45.0 追加
    変更後
    static encode(Ramsey\Uuid\UuidInterface|Symfony\Component\Uid\Ulid|string|null $value, string $format): ?string

formats

v12.45.0 から

static

static formats(): array
@return array<string>
  1. v12.45.0 追加
    変更後
    static formats(): array [@return list<string>]
  2. v13.3.0 シグネチャ変更
    変更前
    static formats(): array [@return list<string>]
    変更後
    static formats(): array [@return array<string>]

isBinary

v12.45.0 から

static

static isBinary(mixed $value): bool
  1. v12.45.0 追加
    変更後
    static isBinary(mixed $value): bool

register

v12.45.0 から

static

static register(string $name, callable $encode, callable $decode): void
  1. v12.45.0 追加
    変更後
    static register(string $name, callable $encode, callable $decode): void