* *
  • Id: string
  • * * */ class MarketplaceWebService_Model_IdList extends MarketplaceWebService_Model { /** * Construct new MarketplaceWebService_Model_IdList * * @param mixed $data DOMElement or Associative Array to construct from. * * Valid properties: * */ public function __construct($data = null) { $this->fields = array ( 'Id' => array('FieldValue' => array(), 'FieldType' => array('string')), ); parent::__construct($data); } /** * Gets the value of the Id . * * @return array of string Id */ public function getId() { return $this->fields['Id']['FieldValue']; } /** * Sets the value of the Id. * * @param string or an array of string Id * @return this instance */ public function setId($id) { if (!$this->isNumericArray($id)) { $id = array ($id); } $this->fields['Id']['FieldValue'] = $id; return $this; } /** * Sets single or multiple values of Id list via variable number of arguments. * For example, to set the list with two elements, simply pass two values as arguments to this function * withId($id1, $id2) * * @param string $stringArgs one or more Id * @return MarketplaceWebService_Model_IdList instance */ public function withId($stringArgs) { foreach (func_get_args() as $id) { $this->fields['Id']['FieldValue'][] = $id; } return $this; } /** * Checks if Id list is non-empty * * @return bool true if Id list is non-empty */ public function isSetId() { return count ($this->fields['Id']['FieldValue']) > 0; } }