aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/bakame/http-structured-fields/src/MissingFeature.php
blob: 03bd8c05f26f459173217ec85052677305291ab4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

declare(strict_types=1);

namespace Bakame\Http\StructuredFields;

final class MissingFeature extends SyntaxError
{
    public static function dueToLackOfSupport(Type $type, Ietf $rfc): self
    {
        return new self('The \''.$type->value.'\' type is not handled by '.strtoupper($rfc->name));
    }
}