1 | <?php |
||
13 | class PulseGroup extends ApiObject |
||
14 | { |
||
15 | const API_PREFIX = "boards"; |
||
16 | |||
17 | protected $pos; |
||
18 | protected $title; |
||
19 | protected $color; |
||
20 | protected $board_id; |
||
21 | protected $archived; |
||
22 | protected $deleted; |
||
23 | |||
24 | /** |
||
25 | * PulseGroup constructor. |
||
26 | * |
||
27 | * @internal |
||
28 | * |
||
29 | * @param array $array |
||
30 | */ |
||
31 | 5 | public function __construct ($array) |
|
32 | { |
||
33 | 5 | $this->arrayConstructionOnly = true; |
|
34 | |||
35 | 5 | parent::__construct($array); |
|
36 | 5 | } |
|
37 | |||
38 | 1 | public function getId () |
|
42 | |||
43 | 2 | public function getTitle () |
|
47 | |||
48 | 1 | public function getColor () |
|
52 | |||
53 | 2 | public function getBoardId () |
|
57 | |||
58 | 3 | public function isArchived () |
|
62 | |||
63 | 1 | public function isDeleted () |
|
67 | |||
68 | /** |
||
69 | * @throws InvalidObjectException The board ID is nonexistent. This typically occurs when a group has been archived |
||
70 | * or deleted and the information is not accessible. |
||
71 | */ |
||
72 | public function deleteGroup () |
||
87 | } |
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.