GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

EmployeePromoted   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 50
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getEmployeeId() 0 4 1
A getEmployeeName() 0 4 1
A getEmployeePosition() 0 4 1
A messageName() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * This file is part of the AL labs package
6
 *
7
 * (c) Arnaud Langlade
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Al\ResourceManagement\Domain\Event;
14
15
use SimpleBus\Message\Name\NamedMessage;
16
17
final class EmployeePromoted implements NamedMessage
18
{
19
    /** @var string */
20
    private $id;
21
22
    /** @var string */
23
    private $name;
24
25
    /** @var string */
26
    private $position;
27
28
    public function __construct(string $id, string $name, string $position)
29
    {
30
        $this->id = $id;
31
        $this->name = $name;
32
        $this->position = $position;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getEmployeeId(): string
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getEmployeeName(): string
47
    {
48
        return $this->name;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getEmployeePosition(): string
55
    {
56
        return $this->position;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public static function messageName(): string
63
    {
64
        return 'employee_promoted';
65
    }
66
}
67