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

ReadPostingsDummy   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A set() 0 3 1
A delete() 0 3 1
A isRead() 0 4 1
1
<?php
2
3
namespace Saito\User\ReadPostings;
4
5
use Saito\User\ReadPostings\ReadPostingsInterface;
6
7
/**
8
 * Nothing can be set read
9
 *
10
 * used as dummy for bots and test cases
11
 */
12
class ReadPostingsDummy implements ReadPostingsInterface
13
{
14
    /**
15
     * {@inheritDoc}
16
     */
17
    public function set($entries)
18
    {
19
    }
20
21
    /**
22
     * {@inheritDoc}
23
     */
24
    public function delete()
25
    {
26
    }
27
28
    /**
29
     * {@inheritDoc}
30
     */
31
    public function isRead($posting, $key = 'time')
32
    {
33
        return true;
34
    }
35
}
36