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

ReadPostingsDummy::_get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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