Passed
Pull Request — master (#1)
by Samuel
03:41 queued 02:16
created

ApiKeyAuthentication   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 17
c 0
b 0
f 0
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 16
    public function __construct(string $apiKey)
10
    {
11 16
        $this->apiKey = $apiKey;
12 16
    }
13
14 2
    public function getApiKey()
15
    {
16 2
        return $this->apiKey;
17
    }
18
19 2
    public function setApiKey($apiKey)
20
    {
21 2
        $this->apiKey = $apiKey;
22 2
    }
23
}
24