1: <?php
2:
3: namespace Charcoal\Ui\FormInput;
4:
5: // Intra-module (`charcoal-ui`) dependency
6: use \Charcoal\Ui\FormGroup\FormGroupInterface;
7:
8: /**
9: * Defines a form input.
10: */
11: interface FormInputInterface
12: {
13: /**
14: * Set the form input's parent group.
15: *
16: * @param FormGroupInterface $formGroup The parent form group object.
17: * @return FormInputInterface Chainable
18: */
19: public function setFormGroup(FormGroupInterface $formGroup);
20:
21: /**
22: * Retrieve the input's parent group.
23: *
24: * @return FormGroupInterface
25: */
26: public function formGroup();
27: }
28: