Passed
Push — master ( 06f5a7...6013ae )
by Loban
02:50
created

DummyManager   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 6
eloc 6
c 2
b 0
f 0
dl 0
loc 29
ccs 12
cts 12
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A log() 0 3 1
A delete() 0 3 1
A __set() 0 2 1
A isEnabled() 0 3 1
A __get() 0 3 1
A __isset() 0 3 1
1
<?php
2
/**
3
 * @link https://github.com/lav45/yii2-activity-logger
4
 * @copyright Copyright (c) 2017 LAV45
5
 * @author Alexey Loban <[email protected]>
6
 * @license http://opensource.org/licenses/BSD-3-Clause
7
 */
8
9
namespace lav45\activityLogger;
10
11
use lav45\activityLogger\storage\DeleteCommand;
12
use lav45\activityLogger\storage\MessageData;
13
14
class DummyManager implements ManagerInterface
15
{
16 1
    public function isEnabled(): bool
17
    {
18 1
        return false;
19
    }
20
21 1
    public function log(MessageData $message): bool
22
    {
23 1
        return false;
24
    }
25
26 1
    public function delete(DeleteCommand $command): bool
27
    {
28 1
        return false;
29
    }
30
31 1
    public function __get(string $name)
32
    {
33 1
        return null;
34
    }
35
36 1
    public function __set(string $name, $value): void
37
    {
38 1
    }
39
40 1
    public function __isset(string $name)
41
    {
42 1
        return false;
43
    }
44
}