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.

HireEmployee::__construct()   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\Application\Command;
14
15
use SimpleBus\Message\Name\NamedMessage;
16
17
final class HireEmployee implements NamedMessage
18
{
19
    /** @var string */
20
    public $name = '';
21
22
    /** @var string */
23
    public $position = '';
24
25
    /** @var int */
26
    public $salaryScale = 0;
27
28
    /** @var \DateTimeInterface */
29
    public $hiredAt;
30
31
    public function __construct()
32
    {
33
        $this->hiredAt = new \DateTime('now');
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public static function messageName(): string
40
    {
41
        return 'hire_employee';
42
    }
43
}
44