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;
    }