Passed
Push — master ( 9db3d0...354d5b )
by Reyo
02:53
created

ProjectUser   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 113
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 25
c 1
b 0
f 0
dl 0
loc 113
ccs 0
cts 53
cp 0
rs 10
wmc 12

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getProjectManager() 0 3 1
A setId() 0 5 1
A getUserDisplayName() 0 3 1
A getUserId() 0 3 1
A setUserDisplayName() 0 5 1
A getId() 0 3 1
A setHourlyRate() 0 5 1
A getBudgetHours() 0 3 1
A setUserId() 0 5 1
A setProjectManager() 0 5 1
A getHourlyRate() 0 3 1
A setBudgetHours() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the timechimp bundle package.
7
 * (c) Connect Holland.
8
 */
9
10
namespace ConnectHolland\TimechimpBundle\Api\Model;
11
12
class ProjectUser
13
{
14
    /**
15
     * @var int|null
16
     */
17
    protected $id;
18
    /**
19
     * User id is required.
20
     *
21
     * @var int|null
22
     */
23
    protected $userId;
24
    /**
25
     * Name of user. Only get, no set.
26
     *
27
     * @var string|null
28
     */
29
    protected $userDisplayName;
30
    /**
31
     * @var float|null
32
     */
33
    protected $hourlyRate;
34
    /**
35
     * @var float|null
36
     */
37
    protected $budgetHours;
38
    /**
39
     * @var bool|null
40
     */
41
    protected $projectManager;
42
43
    public function getId(): ?int
44
    {
45
        return $this->id;
46
    }
47
48
    public function setId(?int $id): self
49
    {
50
        $this->id = $id;
51
52
        return $this;
53
    }
54
55
    /**
56
     * User id is required.
57
     */
58
    public function getUserId(): ?int
59
    {
60
        return $this->userId;
61
    }
62
63
    /**
64
     * User id is required.
65
     */
66
    public function setUserId(?int $userId): self
67
    {
68
        $this->userId = $userId;
69
70
        return $this;
71
    }
72
73
    /**
74
     * Name of user. Only get, no set.
75
     */
76
    public function getUserDisplayName(): ?string
77
    {
78
        return $this->userDisplayName;
79
    }
80
81
    /**
82
     * Name of user. Only get, no set.
83
     */
84
    public function setUserDisplayName(?string $userDisplayName): self
85
    {
86
        $this->userDisplayName = $userDisplayName;
87
88
        return $this;
89
    }
90
91
    public function getHourlyRate(): ?float
92
    {
93
        return $this->hourlyRate;
94
    }
95
96
    public function setHourlyRate(?float $hourlyRate): self
97
    {
98
        $this->hourlyRate = $hourlyRate;
99
100
        return $this;
101
    }
102
103
    public function getBudgetHours(): ?float
104
    {
105
        return $this->budgetHours;
106
    }
107
108
    public function setBudgetHours(?float $budgetHours): self
109
    {
110
        $this->budgetHours = $budgetHours;
111
112
        return $this;
113
    }
114
115
    public function getProjectManager(): ?bool
116
    {
117
        return $this->projectManager;
118
    }
119
120
    public function setProjectManager(?bool $projectManager): self
121
    {
122
        $this->projectManager = $projectManager;
123
124
        return $this;
125
    }
126
}
127