ModuleOptions   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 34
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setAuthorizationCode() 0 6 1
A getAuthorizationCode() 0 4 1
1
<?php
2
/**
3
 * YAWIK Stackoverflow API
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright 2016 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace StackoverflowApi\Options;
12
13
use Zend\Stdlib\AbstractOptions;
14
15
/**
16
 * Module options
17
 * 
18
 * @author Mathias Gelhausen <[email protected]>
19
 */
20
class ModuleOptions extends AbstractOptions
21
{
22
23
    /**
24
     * The authorization code for the Stackoverflow api
25
     *
26
     * @var string
27
     */
28
    private $authorizationCode = '';
29
30
    /**
31
     * Set the authorization code.
32
     *
33
     * @param string $authorizationCode
34
     *
35
     * @return self
36
     */
37 1
    public function setAuthorizationCode($authorizationCode)
38
    {
39 1
        $this->authorizationCode = (string) $authorizationCode;
40
41 1
        return $this;
42
    }
43
44
    /**
45
     * Get the authorization code.
46
     *
47
     * @return string
48
     */
49 1
    public function getAuthorizationCode()
50
    {
51 1
        return $this->authorizationCode;
52
    }
53
}