1 | <?php |
||
21 | class PulseColumn extends ApiObject |
||
22 | { |
||
23 | const API_PREFIX = "boards"; |
||
24 | |||
25 | const Date = "date"; |
||
26 | const Numeric = "numeric"; |
||
27 | const Person = "person"; |
||
28 | const Status = "status"; |
||
29 | const Tag = "tag"; |
||
30 | const Text = "text"; |
||
31 | const Timeline = "timerange"; |
||
32 | |||
33 | protected $title; |
||
34 | protected $type; |
||
35 | protected $empty_text; |
||
36 | protected $labels; |
||
37 | protected $board_id; |
||
38 | |||
39 | private $labelsSanityCheck; |
||
40 | |||
41 | /** |
||
42 | * PulseColumn constructor. |
||
43 | * |
||
44 | * @internal |
||
45 | * |
||
46 | * @param array $idOrArray |
||
47 | */ |
||
48 | 40 | public function __construct ($idOrArray) |
|
55 | |||
56 | public function getId () |
||
60 | |||
61 | public function getTitle () |
||
67 | |||
68 | 13 | public function getType () |
|
80 | |||
81 | /** |
||
82 | * Get the labels for a Status column type |
||
83 | * |
||
84 | * @throws InvalidColumnException if the column is not a Status column |
||
85 | * |
||
86 | * @since 0.3.0 An InvalidColumnException is thrown when the given column is not a status column |
||
87 | * @since 0.1.0 |
||
88 | * |
||
89 | * @return string[] |
||
90 | */ |
||
91 | 2 | public function getLabels () |
|
103 | |||
104 | public function getBoardId () |
||
110 | |||
111 | public function editTitle ($title) |
||
115 | |||
116 | public function editLabels ($labels) |
||
120 | |||
121 | public function deleteColumn () |
||
129 | |||
130 | private function editField ($field, $value) |
||
142 | |||
143 | private function getColumnsUrl () |
||
147 | |||
148 | /** |
||
149 | * DaPulse will only set labels if it has content |
||
150 | */ |
||
151 | 1 | private function sanitizeLabels () |
|
165 | } |
||
166 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.