* *
  • BatchSize: int
  • *
  • Transaction: Amazon_FPS_Model_Transaction
  • *
  • StartTimeForNextTransaction: string
  • * * */ class Amazon_FPS_Model_GetAccountActivityResult extends Amazon_FPS_Model { /** * Construct new Amazon_FPS_Model_GetAccountActivityResult * * @param mixed $data DOMElement or Associative Array to construct from. * * Valid properties: * */ public function __construct($data = null) { $this->_fields = array ( 'BatchSize' => array('FieldValue' => null, 'FieldType' => 'int'), 'Transaction' => array('FieldValue' => array(), 'FieldType' => array('Amazon_FPS_Model_Transaction')), 'StartTimeForNextTransaction' => array('FieldValue' => null, 'FieldType' => 'string'), ); parent::__construct($data); } /** * Gets the value of the BatchSize property. * * @return int BatchSize */ public function getBatchSize() { return $this->_fields['BatchSize']['FieldValue']; } /** * Sets the value of the BatchSize property. * * @param int BatchSize * @return this instance */ public function setBatchSize($value) { $this->_fields['BatchSize']['FieldValue'] = $value; return $this; } /** * Sets the value of the BatchSize and returns this instance * * @param int $value BatchSize * @return Amazon_FPS_Model_GetAccountActivityResult instance */ public function withBatchSize($value) { $this->setBatchSize($value); return $this; } /** * Checks if BatchSize is set * * @return bool true if BatchSize is set */ public function isSetBatchSize() { return !is_null($this->_fields['BatchSize']['FieldValue']); } /** * Gets the value of the Transaction. * * @return array of Transaction Transaction */ public function getTransaction() { return $this->_fields['Transaction']['FieldValue']; } /** * Sets the value of the Transaction. * * @param mixed Transaction or an array of Transaction Transaction * @return this instance */ public function setTransaction($transaction) { if (!$this->_isNumericArray($transaction)) { $transaction = array ($transaction); } $this->_fields['Transaction']['FieldValue'] = $transaction; return $this; } /** * Sets single or multiple values of Transaction list via variable number of arguments. * For example, to set the list with two elements, simply pass two values as arguments to this function * withTransaction($transaction1, $transaction2) * * @param Transaction $transactionArgs one or more Transaction * @return Amazon_FPS_Model_GetAccountActivityResult instance */ public function withTransaction($transactionArgs) { foreach (func_get_args() as $transaction) { $this->_fields['Transaction']['FieldValue'][] = $transaction; } return $this; } /** * Checks if Transaction list is non-empty * * @return bool true if Transaction list is non-empty */ public function isSetTransaction() { return count ($this->_fields['Transaction']['FieldValue']) > 0; } /** * Gets the value of the StartTimeForNextTransaction property. * * @return string StartTimeForNextTransaction */ public function getStartTimeForNextTransaction() { return $this->_fields['StartTimeForNextTransaction']['FieldValue']; } /** * Sets the value of the StartTimeForNextTransaction property. * * @param string StartTimeForNextTransaction * @return this instance */ public function setStartTimeForNextTransaction($value) { $this->_fields['StartTimeForNextTransaction']['FieldValue'] = $value; return $this; } /** * Sets the value of the StartTimeForNextTransaction and returns this instance * * @param string $value StartTimeForNextTransaction * @return Amazon_FPS_Model_GetAccountActivityResult instance */ public function withStartTimeForNextTransaction($value) { $this->setStartTimeForNextTransaction($value); return $this; } /** * Checks if StartTimeForNextTransaction is set * * @return bool true if StartTimeForNextTransaction is set */ public function isSetStartTimeForNextTransaction() { return !is_null($this->_fields['StartTimeForNextTransaction']['FieldValue']); } }