ModuleOptions   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 40%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultNonceExpirationInterval() 0 4 1
A setDefaultNonceExpirationInterval() 0 4 1
1
<?php
2
/**
3
 * @author Stefano Torresi (http://stefanotorresi.it)
4
 * @license See the file LICENSE.txt for copying permission.
5
 * ************************************************
6
 */
7
8
namespace Thorr\Nonce\Options;
9
10
use Zend\Stdlib\AbstractOptions;
11
12
class ModuleOptions extends AbstractOptions
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $defaultNonceExpirationInterval = 'P7D';
18
19
    /**
20
     * @return string
21
     */
22 3
    public function getDefaultNonceExpirationInterval()
23
    {
24 3
        return $this->defaultNonceExpirationInterval;
25
    }
26
27
    /**
28
     * @param string $defaultNonceExpirationInterval
29
     */
30
    public function setDefaultNonceExpirationInterval($defaultNonceExpirationInterval)
31
    {
32
        $this->defaultNonceExpirationInterval = $defaultNonceExpirationInterval;
33
    }
34
}
35