src/FormHelper.php
protected function createInstance(
        InputInterface $input,
        OutputInterface $output,
        Form $form = null
    ) {
        if (!isset($form)) {
            $form = new Form();
        }

        return $form
            ->setInput($input)
            ->setOutput($output)
            ->setHelperSet($this->getHelperSet());
    }
protected function createInstance(
        InputInterface $input,
        OutputInterface $output,
        Form $form = null
    ) {
        if (!isset($form)) {
            $form = new Form();
        }

        return $form
            ->setInput($input)
            ->setOutput($output)
            ->setHelperSet($this->getHelperSet());
    }
protected function createInstance ( InputInterface $ input , OutputInterface $ output , Form $ form = null ) { if ( ! isset ( $ form ) ) { $ form = new Form ( ) ; } return $ form -> setInput ( $ input ) -> setOutput ( $ output ) -> setHelperSet ( $ this -> getHelperSet ( ) ) ; }
Create form instance.

@param \Droath\ConsoleForm\Form|null $form
An already created form instance or null if one should be created.

@return \Droath\ConsoleForm\Form
Create form instance .