JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "AppCheckToken.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/kreait/firebase-php/src/Firebase/AppCheck/AppCheckToken.php
File size: 500 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare(strict_types=1);

namespace Kreait\Firebase\AppCheck;

/**
 * @phpstan-type AppCheckTokenShape array{
 *     token: string,
 *     ttl: string
 * }
 */
final class AppCheckToken
{
    private function __construct(
        public readonly string $token,
        public readonly string $ttl,
    ) {
    }

    /**
     * @param AppCheckTokenShape $data
     */
    public static function fromArray(array $data): self
    {
        return new self($data['token'], $data['ttl']);
    }
}