*
*
ContentType: string - Possible types: OctetStream
*
*
*/
/*
* The only content type that MWS currently supports is octet-stream
*/
class MarketplaceWebService_Model_ContentType extends MarketplaceWebService_Model {
public function __construct($data = null) {
$this->fields = array (
'ContentType' => array('FieldValue' => null, 'FieldType' => 'string'),
'Parameters' => array('FieldValue' => null, 'FieldType' => array('string')),
);
parent::__construct($data);
}
public function getContentType() {
return $this->fields['ContentType']['FieldValue'];
}
public function isSetContentType() {
return !is_null($this->fields['ContentType']['FieldValue']);
}
public function setContentType($value) {
$this->fields['ContentType']['FieldValue'] = $value;
return $this;
}
public function getParameters() {
return $this->fields['Parameters']['FieldValue'];
}
public function setParameters($parameters) {
$this->fields['Parameters']['FieldValue'] = $parameters;
return $this;
}
public function isSetParameters() {
return count ($this->fields['Parameters']['FieldValue']) > 0;
}
public function toString() {
$contentType = $this->getContentType();
return $this->isSetParameters() ?
$contentType . ';' . implode(';', $this->getParameters()) :
$contentType;
}
}