GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 698fd2...95f32c )
by Christian
10:54 queued 08:21
created

Index::__construct()   A

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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Omatech\Enigma\CipherSweet;
4
5
class Index
6
{
7
    public $name;
8
    public $bits = 256;
9
    public $transformers = [];
10
    public $strategies = [];
11
    public $fast = true;
12
13
    /**
14
     * @param string $name
15
     * @return Index
16
     */
17 44
    public function name(string $name)
18
    {
19 44
        $this->name = $name;
20
21 44
        return $this;
22
    }
23
24
    /**
25
     * @param array $transformers
26
     * @return Index
27
     */
28 44
    public function transformers(array $transformers): self
29
    {
30 44
        $this->transformers = $transformers;
31
32 44
        return $this;
33
    }
34
35
    /**
36
     * @param array $strategies
37
     * @return $this
38
     */
39 44
    public function strategies(array $strategies): self
40
    {
41 44
        $this->strategies = $strategies;
42
43 44
        return $this;
44
    }
45
46
    /**
47
     * @param int $bits
48
     * @return Index
49
     */
50 44
    public function bits(int $bits): self
51
    {
52 44
        $this->bits = $bits;
53
54 44
        return $this;
55
    }
56
57
    /**
58
     * @param bool $value
59
     * @return Index
60
     */
61 44
    public function fast(bool $value = true): self
62
    {
63 44
        $this->fast = $value;
64
65 44
        return $this;
66
    }
67
}
68