Completed
Push — develop ( 7f7dc7...7e061e )
by Schlaefer
08:54 queued 10s
created

RemovedSaitoUser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getRole() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Saito - The Threaded Web Forum
7
 *
8
 * @copyright Copyright (c) the Saito Project Developers
9
 * @link https://github.com/Schlaefer/Saito
10
 * @license http://opensource.org/licenses/MIT
11
 */
12
13
namespace Saito\User;
14
15
class RemovedSaitoUser extends SaitoUser
16
{
17
    /**
18
     * {@inheritDoc}
19
     */
20
    public function __construct()
21
    {
22
        $settings = [
23
            'id' => null,
24
            'username' => __('user.removed.placeholder'),
25
        ];
26
        parent::__construct($settings);
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getRole(): string
33
    {
34
        return 'deletedUser';
35
    }
36
}
37