Test Failed
Push — master ( 299cbe...c555d0 )
by Maxim
01:58
created

PastPosition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 19
c 0
b 0
f 0
rs 10
1
<?php
2
/**
3
 * This file is a part of "Axessors" library.
4
 *
5
 * @author <[email protected]>
6
 * @package NoOne4rever\Axessors
7
 * @license GPL
8
 */
9
10
namespace NoOne4rever\Axessors\Examples;
11
12
use NoOne4rever\Axessors\Axessors;
13
14
/**
15
 * Class PastPosition.
16
 *
17
 * Stores information about employee's position.
18
 *
19
 * @method string getName() getter for name
20
 * @method Departament getDepartament() getter for departament
21
 * @method void setName(string $name) setter for name
22
 * @method void setDepartament(Departament $departament) setter for departament
23
 */
24
class PastPosition
25
{
26
    use Axessors;
27
28
    /** @var string position name */
29
    private $name; #> +axs string
30
    /** @var Departament departament */
31
    private $departament; #> +axs Departament
32
33
    /**
34
     * PastPosition constructor.
35
     *
36
     * @param string $name position name
37
     * @param Departament $departament departament
38
     */
39
    public function __construct(string $name, Departament $departament)
40
    {
41
        $this->name = $name;
42
        $this->departament = $departament;
43
    }
44
}