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

DummyManager::isEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
c 1
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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
}