src/Form/FormElement.php
public function setInput($input)
    {
        if (!(is_string($input) || $input instanceof BasicFormElement)) {
            throw new Exception('Input must be a String or instance of FormElement Contract');
        }

        if (is_string($input)) {
            $input = $this->makeInput($input);
        }

        $this->input = $input;

        return $this;
    }
public function setInput($input)
    {
        if (!(is_string($input) || $input instanceof BasicFormElement)) {
            throw new Exception('Input must be a String or instance of FormElement Contract');
        }

        if (is_string($input)) {
            $input = $this->makeInput($input);
        }

        $this->input = $input;

        return $this;
    }
public function setInput ( $ input ) { if ( ! ( is_string ( $ input ) || $ input instanceof BasicFormElement ) ) { throw new Exception ( 'Input must be a String or instance of FormElement Contract' ) ; } if ( is_string ( $ input ) ) { $ input = $ this -> makeInput ( $ input ) ; } $ this -> input = $ input ; return $ this ; }
Set wrapped input object.

@param mixed string|FormElement $input

@throws Exception

@return $this
Set wrapped input object .