ModuleOptions::getDefaultNonceExpirationInterval()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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
eloc 2
nc 1
nop 0
crap 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