_propDict)) { if (is_a($this->_propDict["contentBytes"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["contentBytes"])) { return $this->_propDict["contentBytes"]; } else { $this->_propDict["contentBytes"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["contentBytes"]); return $this->_propDict["contentBytes"]; } } return null; } /** * Sets the contentBytes * Write only. Bytes for the hosted content (such as images). * * @param \GuzzleHttp\Psr7\Stream $val The contentBytes * * @return TeamworkHostedContent */ public function setContentBytes($val) { $this->_propDict["contentBytes"] = $val; return $this; } /** * Gets the contentType * Write only. Content type. such as image/png, image/jpg. * * @return string|null The contentType */ public function getContentType() { if (array_key_exists("contentType", $this->_propDict)) { return $this->_propDict["contentType"]; } else { return null; } } /** * Sets the contentType * Write only. Content type. such as image/png, image/jpg. * * @param string $val The contentType * * @return TeamworkHostedContent */ public function setContentType($val) { $this->_propDict["contentType"] = $val; return $this; } }