Completed
Branch develop (4b6af9)
by Schlaefer
02:49
created

LastRefreshDummy   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A _get() 0 4 1
A set() 0 3 1
A _set() 0 3 1
1
<?php
2
3
namespace Saito\User\LastRefresh;
4
5
/**
6
 * everything is always read
7
 *
8
 * used as dummy for bots and test cases
9
 */
10
class LastRefreshDummy extends LastRefreshAbstract
11
{
12
    /**
13
     * {@inheritDoc}
14
     */
15
    protected function _get()
16
    {
17
        return strtotime('+1 week');
18
    }
19
20
    /**
21
     * {@inheritDoc}
22
     */
23
    public function set($timestamp = null)
24
    {
25
    }
26
27
    /**
28
     * {@inheritDoc}
29
     */
30
    protected function _set()
31
    {
32
    }
33
}
34