Sindbad~EG File Manager

Current Path : /home/copmadinaarea/creditunion.copeastlegondistrict.org/vendor/lcobucci/jwt/src/Token/
Upload File :
Current File : /home/copmadinaarea/creditunion.copeastlegondistrict.org/vendor/lcobucci/jwt/src/Token/DataSet.php

<?php
declare(strict_types=1);

namespace Lcobucci\JWT\Token;

use function array_key_exists;

final class DataSet
{
    /** @param array<non-empty-string, mixed> $data */
    public function __construct(private readonly array $data, private readonly string $encoded)
    {
    }

    /** @param non-empty-string $name */
    public function get(string $name, mixed $default = null): mixed
    {
        return $this->data[$name] ?? $default;
    }

    /** @param non-empty-string $name */
    public function has(string $name): bool
    {
        return array_key_exists($name, $this->data);
    }

    /** @return array<non-empty-string, mixed> */
    public function all(): array
    {
        return $this->data;
    }

    public function toString(): string
    {
        return $this->encoded;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists