Reader::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * src/Reader.php
4
 *
5
 * @package     php-security-txt
6
 * @author      Austin Heap <[email protected]>
7
 * @version     v0.4.0
8
 */
9
10
declare(strict_types = 1);
11
12
namespace AustinHeap\Security\Txt;
13
14
use Exception;
15
16
/**
17
 * Reader
18
 *
19
 * @link        https://github.com/austinheap/php-security-txt
20
 * @link        https://packagist.org/packages/austinheap/php-security-txt
21
 * @link        https://austinheap.github.io/php-security-txt/classes/AustinHeap.Security.Txt.Reader.html
22
 * @link        https://securitytext.org/
23
 */
24
class Reader extends SecurityTxt implements SecurityTxtInterface
25
{
26
27
    /**
28
     * Create a new Reader instance.
29
     *
30
     * @return Reader|SecurityTxt
31
     */
32 3
    public function __construct()
33
    {
34 3
        return parent::__construct($this);
35
    }
36
37
    /**
38
     * Placeholder execute function until this class is flushed out.
39
     *
40
     * @param bool $test_case
41
     *
42
     * @return Reader
43
     * @throws Exception
44
     */
45 1
    public function execute(bool $test_case = false)
46
    {
47 1
        throw new Exception('Function not implemented.');
48
    }
49
50
    /**
51
     * Placeholder reset function until this class is flushed out.
52
     *
53
     * @param bool $test_case
54
     *
55
     * @return Reader
56
     * @throws Exception
57
     */
58 1
    public function reset(bool $test_case = false)
59
    {
60 1
        throw new Exception('Function not implemented.');
61
    }
62
}
63