1 | <?php |
||
5 | class ReleaseBuild |
||
6 | { |
||
7 | |||
8 | private $orderNumbers = null; |
||
9 | private $title = null; |
||
10 | private $description = null; |
||
11 | private $emailBody = null; |
||
12 | private $userIdsToCc = null; |
||
|
|||
13 | |||
14 | /** |
||
15 | * Set issue IDs to include in this release build. |
||
16 | * |
||
17 | * Can be an array of IDs, a comma separated list of IDs, |
||
18 | * or just a single ID. |
||
19 | * |
||
20 | * @param array|string|int $ids |
||
21 | */ |
||
22 | 3 | public function setIssueIds($ids) |
|
23 | { |
||
24 | 3 | if (is_array($ids)) { |
|
25 | 3 | $ids = implode(',', $ids); |
|
26 | 3 | } |
|
27 | |||
28 | 3 | $this->orderNumbers = $ids; |
|
29 | 3 | } |
|
30 | |||
31 | /** |
||
32 | * @param string $description |
||
33 | */ |
||
34 | 3 | public function setDescription($description) |
|
38 | |||
39 | /** |
||
40 | * @param string $emailBody |
||
41 | */ |
||
42 | 3 | public function setEmailBody($emailBody) |
|
46 | |||
47 | /** |
||
48 | * @param string $title |
||
49 | */ |
||
50 | 3 | public function setTitle($title) |
|
54 | |||
55 | /** |
||
56 | * Set user IDs to CC. Can be an array of IDs, a comma separated list of |
||
57 | * IDs, or just a single ID. |
||
58 | * |
||
59 | * @param array|string|int $ids |
||
60 | */ |
||
61 | // public function setUserIdsToCc($ids) |
||
62 | // { |
||
63 | // if (is_array($ids)) { |
||
64 | // $ids = implode(',', $ids); |
||
65 | // } |
||
66 | // |
||
67 | // $this->userIdsToCc = $ids; |
||
68 | // } |
||
69 | |||
70 | /** |
||
71 | * @return array |
||
72 | */ |
||
73 | 18 | public function toArray() |
|
97 | |||
98 | } |
||
99 |
This check marks private properties in classes that are never used. Those properties can be removed.