ModuleOptions::getAuthorizationCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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
}