Set 'Content' value

@param \Protobuf\Stream $value
6232
public function setContent($value)
    {
        if ($value !== null && ! $value instanceof \Protobuf\Stream) {
            $value = \Protobuf\Stream::wrap($value);
        }

        $this->Content = $value;
    }
1312841
public function setContent($content): void
    {
        try {
            $this->content = value($content);
        } catch (\Exception $e) {
            $this->content = $e->getMessage();
        }
    }
818889
protected function _prepareValue(&$value)
        {
            switch ($value[0]) {
                case pdf_parser::TYPE_STRING:
                    if ($this->encrypted) {
                        $value[1] = $this->_unescape($value[1]);
                        $value[1] = $this->_encrypt_data($this->_currentObjId, $value[1]);
                        $value[1] = TCPDF_STATIC::_escape($value[1]);
                    }
                    break;

                case pdf_parser::TYPE_STREAM:
                    if ($this->encrypted) {
                        $value[2][1] = $this->_encrypt_data($this->_currentObjId, $value[2][1]);
                        $value[1][1]['/Length'] = array(
                            pdf_parser::TYPE_NUMERIC,
                            strlen($value[2][1])
                        );
                    }
                    break;

                case pdf_parser::TYPE_HEX:
                    if ($this->encrypted) {
                        $value[1] = $this->hex2str($value[1]);
                        $value[1] = $this->_encrypt_data($this->_currentObjId, $value[1]);

                        // remake hexstring of encrypted string
                        $value[1] = $this->str2hex($value[1]);
                    }
                    break;
            }
        }
344430
public function setValue($value)
    {
        $cast_method = 'castTo' . ucwords($this->castTo);
        $this->values[] = $this->{$cast_method}($value);
    }
1293081
public function setContent($content)
    {
        $contentAttribute = $this->contentAttribute;
        if ($contentAttribute === false) {
            return;
        }
        if (is_array($contentAttribute)) {
            foreach ($contentAttribute as $key => $value) {
                $this->$value = $content[$key];
            }
            return;
        }
        $this->$contentAttribute = $content;
    }
808830
public function setStreamTimeout($value)
    {
        if ($value < 1) {
            $value = self::DEFAULT_STREAM_TIMEOUT;
        }

        $this->streamTimeout = (int) $value;
        if ($this->handle !== null) {
            stream_set_timeout($this->handle, 0, $this->getStreamTimeout());
        }
    }
621309
public function set( $key, $value )
	{
		$uri		= $this->getUriForKey( $key );
		$content	= serialize( $value );
		$this->data[$key]	= $value;
		FS_File_Editor::save( $uri, $content );
	}
549842
public function setValue(string $value = null) : Element
    {
        if ($value && !preg_match("@^(https?|ftp)://@", $value)) {
            $value = "http://$value";
        }
        return parent::setValue($value);
    }
958977
public function setValue($value)
    {
        $this->item->set($this->field->getColName(), $this->field->mmAttribute->widgetToValue($value, null));
    }
244484
public function setContent(Content $content)
    {
        $this->contentTypeName = $content->getType()->getName();
        $this->contentId = $content->getContentId();

        return parent::setContent($content);
    }
148459
public function setContent($content)
    {
        if (!is_null($content)) {
            $content = (string) $content;
        }

        $this->content = $content;
        return $this;
    }
1338634
public function setContent($content)
	{
		if ($content instanceof \ArrayObject || is_array($content))
		{
			$this->headers['Content-Type'] = array('application/json');

			$content = json_encode($content);
		}

		$this->content = $content;
	}
470574
public function set($key, $value = null)
    {
        // Set the value on the contents
        $contents = (array) $this->getContents();
        if (is_array($key)) {
            $contents = $key;
        } else {
            Arr::set($contents, $key, $value);
        }

        $this->saveContents($contents);
    }
291717
public function setValue($value) {
		if(is_array($this->content)){
			foreach ($this->content as $i=>$content){
				if(is_string($content)){
					$this->content[$i]=$value;
					return $this;
				}
			}
		}
		$this->content=$value;
		return $this;
	}
762042
public function set_content($value) {
        $this->content = clean_text($value);
        $this->dirty = true;

        return $this;
    }
447627
public function setInput($value)
    {
        if (stripos($value, 'html>') === false) {
            $this->input = '<!DOCTYPE html><html><head><meta charset="utf-8" /><title>Title</title></head><body>'.
                $value.'</body></html>';
        } else {
            $this->input = $value;
        }
    }
633259
public function setValue($value)
    {
        $this->value = [];

        $token = ' ,;';
        $values = strtok($value, $token);

        while ($values !== false) {
            $this->value[] = $values;
            $values = strtok($token);
        }
    }