/**
* Get the FormFactoryInterface.
*
* @return FormFactoryInterface
*
* @since 4.0.0
* @throws \UnexpectedValueException May be thrown if the FormFactory has not been set.
*/
public function getFormFactory() : FormFactoryInterface
{
if ($this->formFactory) {
return $this->formFactory;
}
throw new \UnexpectedValueException('FormFactory not set in ' . __CLASS__);
}