Passed
Push — master ( ed3719...9cc54a )
by Loban
02:45
created

DummyManager   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 33.33%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
dl 0
loc 21
c 2
b 0
f 0
ccs 2
cts 6
cp 0.3333
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A log() 0 3 1
A delete() 0 3 1
A isEnabled() 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
    public string $user = 'user';
17
18
    public string $userNameAttribute = 'username';
19
20
    public bool $debug = YII_DEBUG;
21
22 1
    public function isEnabled(): bool
23
    {
24 1
        return false;
25
    }
26
27
    public function log(MessageData $message): bool
28
    {
29
        return false;
30
    }
31
32
    public function delete(DeleteCommand $command): bool
33
    {
34
        return false;
35
    }
36
}