CaptchaProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 1
c 1
b 0
f 0
dl 0
loc 22
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
/**
3
 * This file is part of the Shieldon package.
4
 *
5
 * (c) Terry L. <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * php version 7.1.0
11
 *
12
 * @category  Web-security
13
 * @package   Shieldon
14
 * @author    Terry Lin <[email protected]>
15
 * @copyright 2019 terrylinooo
16
 * @license   https://github.com/terrylinooo/shieldon/blob/2.x/LICENSE MIT
17
 * @link      https://github.com/terrylinooo/shieldon
18
 * @see       https://shieldon.io
19
 */
20
21
declare(strict_types=1);
22
23
namespace Shieldon\Firewall\Captcha;
24
25
/**
26
 * ComponentPrivider
27
 */
28
abstract class CaptchaProvider implements CaptchaInterface
29
{
30
    /**
31
     * Constroctor.
32
     */
33 210
    public function __construct()
34
    {
35
    }
36 210
37
    /**
38
     * Is denied?
39
     *
40
     * @return bool
41
     */
42
    abstract public function response(): bool;
43
44
    /**
45
     * Unique deny status code.
46
     *
47
     * @return string
48
     */
49
    abstract public function form(): string;
50
}
51