X

Create New Item

File Folder

X

Search Results

File "CustomTokenCreationFailed.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/kreait/firebase-tokens/src/JWT/Error/CustomTokenCreationFailed.php
File size: 374 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

declare(strict_types=1);

namespace Kreait\Firebase\JWT\Error;

use RuntimeException;
use Throwable;

final class CustomTokenCreationFailed extends RuntimeException
{
    public static function because(string $reason, ?int $code = null, ?Throwable $previous = null): self
    {
        $code = $code ?: 0;

        return new self($reason, $code, $previous);
    }
}