Set the content of the interaction, containing the hottext areas.

@param \qtism\data\content\BlockStaticCollection $content A collection of at least one BlockStatic object.
@throws \InvalidArgumentException If $content is empty.
765286
public function setContent(BlockStaticCollection $content)
    {
        if (count($content) > 0) {
            $this->content = $content;
        } else {
            $msg = "A HottextInteraction object must be composed of at least one BlockStatic object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
463649
public function setContent( $content ) {
		if ( ! is_array( $content ) ) {
			$content = [ $content ];
		}
		foreach ( $content as $v ) {
			if ( $this === $v ) {
				throw new \LogicException( 'Recursion problem: cannot set self as content to self' );
			}
		}
		$this->content = $content;
	}
1332931
public void setContent(final WComponent content) {
		getOrCreateComponentModel().content = content;

		// There should only be one content.
		holder.removeAll();
		holder.add(content);
	}
992808
public function setContent( $content = NULL )
	{
		if( is_object( $content ) ){
			if( !method_exists( $content, '__toString' ) ){											//  content is not a renderable object
				$message	= 'Object of class "'.get_class( $content ).'" cannot be rendered';		//  prepare message about not renderable object
				throw new InvalidArgumentException( $message ); 									//  break with error message
			}
			$content	= (string) $content;														//  render object to string
		}
		$this->content	= $content;
	}
1037061
public function setContent($content = null)
    {
        if (null !== $content && !is_string($content)) {
            throw new ResponseException('Response content must be a string.');
        }

        $this->content = (string) $content;

        return $this;
    }
811253
public function addContent(Content $content)
    {
        if ($content->getArea()->getTemplate()->getSlug() == $this->getTemplate()->getSlug()
            && trim(strip_tags($content->getContents(), '<img><input><button><iframe>'))) {
            $content->setArticle($this);
            $this->contents[] = $content;
        }

        return $this;
    }
487102
private function setContent($content)
    {
        if (strpos($content, 'file://') === 0) {
            $content = $this->readFile($content);
        }

        $this->content = $content;
    }
568757
public function setContent($content)
    {
        if (is_array($content)) {
            $this->setContentType('json');
            $this->_content = json_encode($content, JSON_PRETTY_PRINT);
        } else {
            $this->_content = (string) $content;
        }
    }
712508
public function indexContent(Content $content)
    {
        $fullTextValue = $this->mapper->mapContent($content);

        $this->indexerGateway->index($fullTextValue);
    }
1262860
private function setContent($content)
    {
        if (is_array($content))
            $this->content = $content;
        elseif (is_string($content))
            $this->content = trim($content);

        return $this;
    }
229128
public function setContent($content)
    {
        if (!is_null($content) && !is_string($content) && !is_callable(array($content, '__toString')))
        {
            throw new UnexpectedValueException(
                'The view content must be a string or object implementing __toString(), "'.gettype($content).'" given.'
            );
        }

        $this->_content = $content;
        return $this;
    }
748248
public function setContent(string $content)
    {
        if (self::VISUAL === $this->getMode()) {
            $this->getDriver()->switchToIFrame(self::$wysiwyg_iframe_id);
            $this->getDriver()->executeScript(
                ';document.body.innerHTML = \'<p>' . addslashes(htmlspecialchars($content)) . '</p>\';'
            );
            $this->getDriver()->switchToIFrame();
        } else {
            $this->fillField(self::$textarea_id, $content);
        }
    }
929406
public function setContent($content)
    {
        if (!$json = json_encode($content)) {
            $this->setResponseCode(self::HTTP_INTERNAL_SERVER_ERROR);
            $json = json_encode(['status' => 'error', 'error_message' => json_last_error_msg()]);
        }

        $this->content = $json;

        return $this;
    }
1107288
public void setContent(Content content) {
        setSize(content.getContent().length);
        setAttachmentContentId(content.getId());
    }
1163507
function setBody($content)
    {
        if (! $content instanceof iStreamable )
            ## Instead Of StreamInterface must convert to string
            $content = (string) $content;

        $this->body = $content;
        return $this;
    }
1013611
public final void setContent(String content)
    {
        //clear non relevant flags
        this.contentBinary=null;
        this.contentParts=null;
        this.contentType=ContentType.STRING;

        this.contentString=content;
    }
86567
public function set(string $hash, string $content): void
    {
        $this->saveContent($hash, $content);
    }