Failed Conditions
Push — v7 ( 73ebba...e5c6da )
by Florent
02:18
created

UnencodedPayloadChecker::checkHeader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * The MIT License (MIT)
7
 *
8
 * Copyright (c) 2014-2017 Spomky-Labs
9
 *
10
 * This software may be modified and distributed under the terms
11
 * of the MIT license.  See the LICENSE file for details.
12
 */
13
14
namespace Jose\Component\Checker;
15
16
/**
17
 * Class UnencodedPayloadChecker
18
 */
19
final class UnencodedPayloadChecker implements HeaderCheckerInterface
20
{
21
    private const HEADER_NAME = 'b64';
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function checkHeader($value)
27
    {
28
        // Nothing to do
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function supportedHeader(): string
35
    {
36
        return self::HEADER_NAME;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function protectedHeaderOnly(): bool
43
    {
44
        return true;
45
    }
46
}
47