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.

EmployeeHired::messageName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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 EmployeeHired 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_hired';
65
    }
66
}
67