1919 * @property-read array $errors
2020 * @property-read array $ownErrors
2121 * @property-read Html $elementPrototype
22- * @property-read IFormRenderer $renderer
22+ * @property-read FormRenderer $renderer
2323 * @property string $action
2424 * @property string $method
2525 */
@@ -105,7 +105,7 @@ class Form extends Container implements Nette\Utils\IHtmlString
105105 /** @var Html element <form> */
106106 private $ element ;
107107
108- /** @var IFormRenderer */
108+ /** @var FormRenderer */
109109 private $ renderer ;
110110
111111 /** @var Nette\Localization\ITranslator */
@@ -326,7 +326,7 @@ public function isAnchored(): bool
326326
327327 /**
328328 * Tells if the form was submitted.
329- * @return ISubmitterControl |bool submittor control
329+ * @return SubmitterControl |bool submittor control
330330 */
331331 public function isSubmitted ()
332332 {
@@ -351,7 +351,7 @@ public function isSuccess(): bool
351351 * @return static
352352 * @internal
353353 */
354- public function setSubmittedBy (?ISubmitterControl $ by )
354+ public function setSubmittedBy (?SubmitterControl $ by )
355355 {
356356 $ this ->submittedBy = $ by ?? false ;
357357 return $ this ;
@@ -391,7 +391,7 @@ public function fireEvents(): void
391391 $ this ->validate ();
392392 }
393393
394- if ($ this ->submittedBy instanceof ISubmitterControl ) {
394+ if ($ this ->submittedBy instanceof SubmitterControl ) {
395395 if ($ this ->isValid ()) {
396396 if ($ handlers = $ this ->submittedBy ->onClick ) {
397397 if (!is_iterable ($ handlers )) {
@@ -483,7 +483,7 @@ protected function receiveHttpData(): ?array
483483 public function validate (array $ controls = null ): void
484484 {
485485 $ this ->cleanErrors ();
486- if ($ controls === null && $ this ->submittedBy instanceof ISubmitterControl ) {
486+ if ($ controls === null && $ this ->submittedBy instanceof SubmitterControl ) {
487487 $ controls = $ this ->submittedBy ->getValidationScope ();
488488 }
489489 $ this ->validateMaxPostSize ();
@@ -568,7 +568,7 @@ public function getElementPrototype(): Html
568568 * Sets form renderer.
569569 * @return static
570570 */
571- public function setRenderer (?IFormRenderer $ renderer )
571+ public function setRenderer (?FormRenderer $ renderer )
572572 {
573573 $ this ->renderer = $ renderer ;
574574 return $ this ;
@@ -578,7 +578,7 @@ public function setRenderer(?IFormRenderer $renderer)
578578 /**
579579 * Returns form renderer.
580580 */
581- public function getRenderer (): IFormRenderer
581+ public function getRenderer (): FormRenderer
582582 {
583583 if ($ this ->renderer === null ) {
584584 $ this ->renderer = new Rendering \DefaultFormRenderer ;
0 commit comments