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.

Index   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 61
ccs 15
cts 15
cp 1
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A strategies() 0 5 1
A name() 0 5 1
A transformers() 0 5 1
A fast() 0 5 1
A bits() 0 5 1
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