Completed
Push — master ( b41795...d72d75 )
by Chauncey
08:27
created
src/Charcoal/Ui/FormGroup/FormGroupTrait.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     /**
76 76
      * @param FormInputBuilder $builder The builder, to create customized form input objects.
77
-     * @return FormGroupInterface Chainable
77
+     * @return FormGroupTrait Chainable
78 78
      */
79 79
     protected function setFormInputBuilder(FormInputBuilder $builder)
80 80
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     /**
86 86
      * @param callable $cb The input callback.
87
-     * @return FormGroupInterface Chainable
87
+     * @return FormGroupTrait Chainable
88 88
      */
89 89
     public function setInputCallback(callable $cb)
90 90
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param FormInterface $form The parent form object.
97
-     * @return FormGroupInterface Chainable
97
+     * @return FormGroupTrait Chainable
98 98
      */
99 99
     public function setForm(FormInterface $form)
100 100
     {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * @param string $mode The l10n mode.
115
-     * @return FormGroupInterface Chainable
115
+     * @return FormGroupTrait Chainable
116 116
      */
117 117
     public function setL10nMode($mode)
118 118
     {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     /**
132 132
      * @param array $inputs The group inputs.
133
-     * @return FormGroupInterface Chainable
133
+     * @return FormGroupTrait Chainable
134 134
      */
135 135
     public function setInputs(array $inputs)
136 136
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @param string                   $inputIdent The input identifier.
146 146
      * @param array|FormInputInterface $input      The input object or structure.
147 147
      * @throws InvalidArgumentException If the ident argument is not a string or if the input is not valid.
148
-     * @return FormGroupInterface Chainable
148
+     * @return FormGroupTrait Chainable
149 149
      */
150 150
     public function addInput($inputIdent, $input)
151 151
     {
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * Form Input generator.
176 176
      *
177 177
      * @param callable $inputCallback Optional. Input callback.
178
-     * @return FormGroupInterface[]|Generator
178
+     * @return \Generator
179 179
      */
180 180
     public function inputs(callable $inputCallback = null)
181 181
     {
Please login to merge, or discard this patch.
src/Charcoal/Ui/MenuItem/AbstractMenuItem.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * @param string $ident The menu item identifier.
95 95
      * @throws InvalidArgumentException If the identifier argument is not a string.
96
-     * @return MenuItem Chainable
96
+     * @return AbstractMenuItem Chainable
97 97
      */
98 98
     public function setIdent($ident)
99 99
     {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     /**
118 118
      * @param mixed $label The menu item label.
119
-     * @return MenuItem Chainable
119
+     * @return AbstractMenuItem Chainable
120 120
      */
121 121
     public function setLabel($label)
122 122
     {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     }
126 126
 
127 127
     /**
128
-     * @return string
128
+     * @return \Charcoal\Translator\Translation|null
129 129
      */
130 130
     public function label()
131 131
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
     /**
136 136
      * @param string $url The menu item URL.
137
-     * @return MenuItem Chainable
137
+     * @return AbstractMenuItem Chainable
138 138
      */
139 139
     public function setUrl($url)
140 140
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     /**
162 162
      * @param array $children The menu item children items structure.
163
-     * @return MenuItem Chainable
163
+     * @return AbstractMenuItem Chainable
164 164
      */
165 165
     public function setChildren(array $children)
166 166
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     /**
175 175
      * @param array|MenuItem $child The child menu structure or object.
176 176
      * @throws InvalidArgumentException If the child is not a menu object or structure.
177
-     * @return MenuItem Chainable
177
+     * @return AbstractMenuItem Chainable
178 178
      */
179 179
     public function addChild($child)
180 180
     {
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      * Children (menu item) generator
197 197
      *
198 198
      * @param callable $childCallback Optional callback.
199
-     * @return MenuItemInterface[]
199
+     * @return \Generator
200 200
      */
201 201
     public function children(callable $childCallback = null)
202 202
     {
Please login to merge, or discard this patch.
src/Charcoal/Ui/Form/FormTrait.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     /**
84 84
      * @param FactoryInterface $factory A factory, to create customized form gorup objects.
85
-     * @return FormInterface Chainable
85
+     * @return FormTrait Chainable
86 86
      */
87 87
     public function setFormGroupFactory(FactoryInterface $factory)
88 88
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     /**
110 110
      * @param callable $cb The group callback.
111
-     * @return FormInterface Chainable
111
+     * @return FormTrait Chainable
112 112
      */
113 113
     public function setGroupCallback(callable $cb)
114 114
     {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * @param string $action The "action" value, typically a URL.
122 122
      * @throws InvalidArgumentException If the action argument is not a string.
123
-     * @return FormInterface Chainable
123
+     * @return FormTrait Chainable
124 124
      */
125 125
     public function setAction($action)
126 126
     {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      *
148 148
      * @param string $method Either "post" or "get".
149 149
      * @throws InvalidArgumentException If the method is not post or get.
150
-     * @return FormInterface Chainable
150
+     * @return FormTrait Chainable
151 151
      */
152 152
     public function setMethod($method)
153 153
     {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 
173 173
     /**
174 174
      * @param string $mode The l10n mode.
175
-     * @return FormInterface Chainable
175
+     * @return FormTrait Chainable
176 176
      */
177 177
     public function setL10nMode($mode)
178 178
     {
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      * Set the object's form groups.
194 194
      *
195 195
      * @param array $groups A collection of group structures.
196
-     * @return FormInterface Chainable
196
+     * @return FormTrait Chainable
197 197
      */
198 198
     public function setGroups(array $groups)
199 199
     {
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      * @param  string                   $groupIdent The group identifier.
213 213
      * @param  array|FormGroupInterface $group      The group object or structure.
214 214
      * @throws InvalidArgumentException If the identifier is not a string or the group is invalid.
215
-     * @return FormInterface Chainable
215
+     * @return FormTrait Chainable
216 216
      */
217 217
     public function addGroup($groupIdent, $group)
218 218
     {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
      * Retrieve the form groups.
316 316
      *
317 317
      * @param callable $groupCallback Optional callback applied to each form group.
318
-     * @return FormGroupInterface[]|Generator
318
+     * @return \Generator
319 319
      */
320 320
     public function groups(callable $groupCallback = null)
321 321
     {
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
      *
400 400
      * @param string $mode Group display mode.
401 401
      * @throws InvalidArgumentException If the display mode is not a string.
402
-     * @return ObjectFormWidget Chainable.
402
+     * @return FormTrait Chainable.
403 403
      */
404 404
     public function setGroupDisplayMode($mode)
405 405
     {
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 
441 441
     /**
442 442
      * @param array $formData The (pre-populated) form data, as [$key=>$val] array.
443
-     * @return FormInterface Chainable
443
+     * @return FormTrait Chainable
444 444
      */
445 445
     public function setFormData(array $formData)
446 446
     {
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      * @param string $key The form data key, or poperty identifier.
454 454
      * @param mixed  $val The form data value, for a given key.
455 455
      * @throws InvalidArgumentException If the key argument is not a string.
456
-     * @return FormInterface Chainable
456
+     * @return FormTrait Chainable
457 457
      */
458 458
     public function addFormData($key, $val)
459 459
     {
Please login to merge, or discard this patch.