1 | <?php |
||
11 | final class IsSafeHttpMethod implements IsSafeHttpRequestInterface |
||
12 | { |
||
13 | const STRICT_COMPARE = true; // Used a constant to avoid a Humbug mutation. |
||
14 | |||
15 | /** |
||
16 | * @var \string[] |
||
17 | */ |
||
18 | private $safeMethods; |
||
19 | |||
20 | public function __construct(string ...$safeMethods) |
||
24 | |||
25 | public static function fromDefaultSafeMethods() : self |
||
29 | |||
30 | public function __invoke(ServerRequestInterface $request) : bool |
||
34 | } |
||
35 |