/**
* Get the factory.
*
* @return MVCFactoryInterface
*
* @since 4.0.0
* @throws \UnexpectedValueException May be thrown if the factory has not been set.
*/
public function getMVCFactory() : MVCFactoryInterface
{
if (!$this->mvcFactory) {
throw new \UnexpectedValueException('MVC factory not set in ' . __CLASS__);
}
return $this->mvcFactory;
}