AbstractService   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 44
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getSiteKey() 0 4 1
A setSiteKey() 0 4 1
A getSecretKey() 0 4 1
A setSecretKey() 0 4 1
A getParams() 0 4 1
getServiceUri() 0 1 ?
1
<?php
2
namespace ReCaptcha2\Captcha;
3
4
abstract class AbstractService implements ServiceInterface
5
{
6
    /**
7
     * @var string
8
     */
9
    protected $siteKey;
10
11
    /**
12
     * @var string
13
     */
14
    protected $secretKey;
15
16
    /**
17
     * @var array
18
     */
19
    protected $params = [];
20
21
    public function getSiteKey()
22
    {
23
        return $this->siteKey;
24
    }
25
26
    public function setSiteKey($siteKey)
27
    {
28
        $this->siteKey = $siteKey;
29
    }
30
31
    public function getSecretKey()
32
    {
33
        return $this->secretKey;
34
    }
35
36
    public function setSecretKey($secretKey)
37
    {
38
        $this->secretKey = $secretKey;
39
    }
40
41
    public function getParams()
42
    {
43
        return $this->params;
44
    }
45
46
    abstract public function getServiceUri();
47
}
48