ApiKeyAuthentication   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 17
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getApiKey() 0 3 1
A setApiKey() 0 3 1
1
<?php
2
3
namespace Elmage\TextNg\Authentication;
4
5
class ApiKeyAuthentication
6
{
7
    private $apiKey;
8
9 8
    public function __construct(string $apiKey)
10
    {
11 8
        $this->apiKey = $apiKey;
12 8
    }
13
14 1
    public function getApiKey()
15
    {
16 1
        return $this->apiKey;
17
    }
18
19 1
    public function setApiKey($apiKey)
20
    {
21 1
        $this->apiKey = $apiKey;
22 1
    }
23
}
24