Passed
Push — master ( 889f64...3cf00c )
by Nico
16:27
created

UserLogin::getCategory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php declare(strict_types=1);
2
/**
3
 * @author Nicolas CARPi <[email protected]>
4
 * @copyright 2023 Nicolas CARPi
5
 * @see https://www.elabftw.net Official website
6
 * @license AGPL-3.0
7
 * @package elabftw
8
 */
9
10
namespace Elabftw\AuditEvent;
11
12
use Elabftw\Enums\AuditCategory;
13
14
class UserLogin extends AbstractAuditEvent
15
{
16
    public function getBody(): string
17
    {
18
        return 'User logged in';
19
    }
20
21
    public function getCategory(): int
22
    {
23
        return AuditCategory::Login->value;
24
    }
25
}
26