FormFactory/AbstractMessageFormFactory.php
/**
     * Creates a new instance of the form model.
     *
     * @return AbstractMessage
     */
Creates a new instance of the form model.
Creates a new instance of the form model .
protected function createModelInstance(): AbstractMessage
    {
        $class = $this->messageClass;
        return new $class();
    }
protected function createModelInstance ( ) : AbstractMessage { $ class = $ this -> messageClass ; return new $ class ( ) ; }
Creates a new instance of the form model.
Creates a new instance of the form model .