1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Copyright (c) Enalean, 2012. All Rights Reserved. |
4
|
|
|
* |
5
|
|
|
* This file is a part of Tuleap. |
6
|
|
|
* |
7
|
|
|
* Tuleap is free software; you can redistribute it and/or modify |
8
|
|
|
* it under the terms of the GNU General Public License as published by |
9
|
|
|
* the Free Software Foundation; either version 2 of the License, or |
10
|
|
|
* (at your option) any later version. |
11
|
|
|
* |
12
|
|
|
* Tuleap is distributed in the hope that it will be useful, |
13
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15
|
|
|
* GNU General Public License for more details. |
16
|
|
|
* |
17
|
|
|
* You should have received a copy of the GNU General Public License |
18
|
|
|
* along with Tuleap. If not, see <http://www.gnu.org/licenses/>. |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* A swimline in the dashboard |
23
|
|
|
*/ |
24
|
|
|
class Cardwall_Swimline { |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var Cardwall_CardInCellPresenter |
28
|
|
|
*/ |
29
|
|
|
private $card_in_cell_presenter; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var array |
33
|
|
|
*/ |
34
|
|
|
public $cells = array(); |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var int |
38
|
|
|
*/ |
39
|
|
|
public $swimline_id; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var bool |
43
|
|
|
*/ |
44
|
|
|
public $is_no_matching_column = false; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @param string $title |
|
|
|
|
48
|
|
|
* @param array $cells |
49
|
|
|
*/ |
50
|
|
|
public function __construct(Cardwall_CardInCellPresenter $swimline_artifact_presenter, array $cells) { |
51
|
|
|
$this->cells = $cells; |
52
|
|
|
$this->card_in_cell_presenter = $swimline_artifact_presenter; |
53
|
|
|
$this->swimline_id = $swimline_artifact_presenter->getId(); |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @return Tracker_CardPresenter |
58
|
|
|
*/ |
59
|
|
|
public function getCardPresenter() { |
60
|
|
|
return $this->card_in_cell_presenter->getCardPresenter(); |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* |
65
|
|
|
* @return Cardwall_CardInCellPresenter |
66
|
|
|
*/ |
67
|
|
|
public function getCardInCellPresenter() { |
68
|
|
|
return $this->card_in_cell_presenter; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
public function stack_cards_title() { |
72
|
|
|
return $GLOBALS['Language']->getText('plugin_cardwall', 'cell_stack'); |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
public function expand_cards_title() { |
76
|
|
|
return $GLOBALS['Language']->getText('plugin_cardwall', 'cell_unstack'); |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function getCells() { |
80
|
|
|
return $this->cells; |
81
|
|
|
} |
82
|
|
|
} |
83
|
|
|
?> |
84
|
|
|
|
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.