@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * Which columns are handled by this component |
53 | 53 | * |
54 | 54 | * @param type $gridField |
55 | - * @return type |
|
55 | + * @return string[] |
|
56 | 56 | */ |
57 | 57 | public function getColumnsHandled($gridField) |
58 | 58 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * Which GridField actions are this component handling |
64 | 64 | * |
65 | 65 | * @param GridField $gridField |
66 | - * @return array |
|
66 | + * @return string[] |
|
67 | 67 | */ |
68 | 68 | public function getActions($gridField) |
69 | 69 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * Which columns are handled by this component |
64 | 64 | * |
65 | 65 | * @param type $gridField |
66 | - * @return type |
|
66 | + * @return string[] |
|
67 | 67 | */ |
68 | 68 | public function getColumnsHandled($gridField) |
69 | 69 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @param DataObject $record |
76 | 76 | * @param string $columnName |
77 | 77 | * |
78 | - * @return string - the HTML for the column |
|
78 | + * @return HTMLText - the HTML for the column |
|
79 | 79 | */ |
80 | 80 | public function getColumnContent($gridField, $record, $columnName) |
81 | 81 | { |
@@ -6,6 +6,9 @@ |
||
6 | 6 | */ |
7 | 7 | class WorkflowPublishTargetJob extends AbstractQueuedJob |
8 | 8 | { |
9 | + /** |
|
10 | + * @param string $type |
|
11 | + */ |
|
9 | 12 | public function __construct($obj = null, $type = null) |
10 | 13 | { |
11 | 14 | if ($obj) { |
@@ -67,6 +67,7 @@ discard block |
||
67 | 67 | * Will recursively query parent elements until it finds one, if available |
68 | 68 | * |
69 | 69 | * @param DataObject $dataObject |
70 | + * @return null|DataObject |
|
70 | 71 | */ |
71 | 72 | public function getDefinitionFor(DataObject $dataObject) |
72 | 73 | { |
@@ -92,6 +93,7 @@ discard block |
||
92 | 93 | * |
93 | 94 | * @param data object |
94 | 95 | * @param integer |
96 | + * @param DataObject $object |
|
95 | 97 | * @return workflow definition |
96 | 98 | */ |
97 | 99 | |
@@ -300,7 +302,6 @@ discard block |
||
300 | 302 | /** |
301 | 303 | * Get items that the passed-in user has awaiting for them to action |
302 | 304 | * |
303 | - * @param Member $member |
|
304 | 305 | * @return DataList $userInstances |
305 | 306 | */ |
306 | 307 | public function userPendingItems(Member $user) |
@@ -328,7 +329,6 @@ discard block |
||
328 | 329 | /** |
329 | 330 | * Get items that the passed-in user has submitted for workflow review |
330 | 331 | * |
331 | - * @param Member $member |
|
332 | 332 | * @return DataList $userInstances |
333 | 333 | */ |
334 | 334 | public function userSubmittedItems(Member $user) |
@@ -19,6 +19,10 @@ |
||
19 | 19 | protected $parent; |
20 | 20 | protected $name; |
21 | 21 | |
22 | + /** |
|
23 | + * @param WorkflowField $parent |
|
24 | + * @param string $name |
|
25 | + */ |
|
22 | 26 | public function __construct($parent, $name) |
23 | 27 | { |
24 | 28 | $this->parent = $parent; |
@@ -72,6 +72,9 @@ discard block |
||
72 | 72 | */ |
73 | 73 | protected $structure; |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $name |
|
77 | + */ |
|
75 | 78 | public function __construct($name, $description = '', $version = '0.0', $remindDays = 0, $sort = 0) |
76 | 79 | { |
77 | 80 | $this->name = $name; |
@@ -120,7 +123,7 @@ discard block |
||
120 | 123 | * Creates the relevant data objects for this structure, returning an array |
121 | 124 | * of actions in the order they've been created |
122 | 125 | * |
123 | - * @param WorkflowDefinition $definitino |
|
126 | + * @param WorkflowDefinition $definition |
|
124 | 127 | * An optional workflow definition to bind the actions into |
125 | 128 | * @return array |
126 | 129 | */ |
@@ -172,7 +175,7 @@ discard block |
||
172 | 175 | * Create a workflow action based on a template |
173 | 176 | * |
174 | 177 | * @param string $name |
175 | - * @param array $template |
|
178 | + * @param array $actionTemplate |
|
176 | 179 | * @param WorkflowDefinition $definition |
177 | 180 | * @return WorkflowAction |
178 | 181 | */ |