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

RemovedSaitoUser::getRole()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

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
rs 10
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