public function setTextInput($textInput)
    {
        if ($textInput instanceof FeedTextInput) {
            $this->textInput = $textInput;
        } elseif (is_array($textInput)) {
            if (!empty($textInput)) {
                $this->textInput = FeedTextInput::createFromArray($textInput);
            }
        } elseif (is_null($textInput)) {
            $this->textInput = null;
        } else {
            throw new \InvalidArgumentException('Invalid textInput');
        }

        return $this;
    }
public function setTextInput($textInput)
    {
        if ($textInput instanceof FeedTextInput) {
            $this->textInput = $textInput;
        } elseif (is_array($textInput)) {
            if (!empty($textInput)) {
                $this->textInput = FeedTextInput::createFromArray($textInput);
            }
        } elseif (is_null($textInput)) {
            $this->textInput = null;
        } else {
            throw new \InvalidArgumentException('Invalid textInput');
        }

        return $this;
    }
public function setTextInput ( $ textInput ) { if ( $ textInput instanceof FeedTextInput ) { $ this -> textInput = $ textInput ; } elseif ( is_array ( $ textInput ) ) { if ( ! empty ( $ textInput ) ) { $ this -> textInput = FeedTextInput :: createFromArray ( $ textInput ) ; } } elseif ( is_null ( $ textInput ) ) { $ this -> textInput = null ; } else { throw new \ InvalidArgumentException ( 'Invalid textInput' ) ; } return $ this ; }
Sets textInput.

@param FeedTextInput|array $textInput

@return Feed

@throws \InvalidArgumentException
Sets textInput .