@@ -149,7 +149,7 @@ public function getHtmlName()
149149
150150 /**
151151 * Sets control's value.
152- * @return self
152+ * @return static
153153 * @internal
154154 */
155155 public function setValue ($ value )
@@ -182,7 +182,7 @@ public function isFilled()
182182
183183 /**
184184 * Sets control's default value.
185- * @return self
185+ * @return static
186186 */
187187 public function setDefaultValue ($ value )
188188 {
@@ -197,7 +197,7 @@ public function setDefaultValue($value)
197197 /**
198198 * Disables or enables control.
199199 * @param bool
200- * @return self
200+ * @return static
201201 */
202202 public function setDisabled ($ value = TRUE )
203203 {
@@ -221,7 +221,7 @@ public function isDisabled()
221221 /**
222222 * Sets whether control value is excluded from $form->getValues() result.
223223 * @param bool
224- * @return self
224+ * @return static
225225 */
226226 public function setOmitted ($ value = TRUE )
227227 {
@@ -316,7 +316,7 @@ public function getLabelPrototype()
316316 /**
317317 * Changes control's HTML id.
318318 * @param string new ID, or FALSE or NULL
319- * @return self
319+ * @return static
320320 */
321321 public function setHtmlId ($ id )
322322 {
@@ -342,7 +342,7 @@ public function getHtmlId()
342342 * Changes control's HTML attribute.
343343 * @param string name
344344 * @param mixed value
345- * @return self
345+ * @return static
346346 */
347347 public function setAttribute ($ name , $ value = TRUE )
348348 {
@@ -356,7 +356,7 @@ public function setAttribute($name, $value = TRUE)
356356
357357 /**
358358 * Sets translate adapter.
359- * @return self
359+ * @return static
360360 */
361361 public function setTranslator (Nette \Localization \ITranslator $ translator = NULL )
362362 {
@@ -406,7 +406,7 @@ public function translate($value, $count = NULL)
406406 * @param mixed rule type
407407 * @param string message to display for invalid data
408408 * @param mixed optional rule arguments
409- * @return self
409+ * @return static
410410 */
411411 public function addRule ($ validator , $ message = NULL , $ arg = NULL )
412412 {
@@ -452,7 +452,7 @@ public function getRules()
452452 /**
453453 * Makes control mandatory.
454454 * @param mixed state or error message
455- * @return self
455+ * @return static
456456 */
457457 public function setRequired ($ value = TRUE )
458458 {
@@ -549,7 +549,7 @@ public static function enableAutoOptionalMode()
549549
550550 /**
551551 * Sets user-specific option.
552- * @return self
552+ * @return static
553553 */
554554 public function setOption ($ key , $ value )
555555 {
0 commit comments