*
*
Token: Amazon_FPS_Model_Token
*
*
*/
class Amazon_FPS_Model_GetTokenByCallerResult extends Amazon_FPS_Model
{
/**
* Construct new Amazon_FPS_Model_GetTokenByCallerResult
*
* @param mixed $data DOMElement or Associative Array to construct from.
*
* Valid properties:
*
*
* - Token: Amazon_FPS_Model_Token
*
*
*/
public function __construct($data = null)
{
$this->_fields = array (
'Token' => array('FieldValue' => null, 'FieldType' => 'Amazon_FPS_Model_Token'),
);
parent::__construct($data);
}
/**
* Gets the value of the Token.
*
* @return Token Token
*/
public function getToken()
{
return $this->_fields['Token']['FieldValue'];
}
/**
* Sets the value of the Token.
*
* @param Token Token
* @return void
*/
public function setToken($value)
{
$this->_fields['Token']['FieldValue'] = $value;
return;
}
/**
* Sets the value of the Token and returns this instance
*
* @param Token $value Token
* @return Amazon_FPS_Model_GetTokenByCallerResult instance
*/
public function withToken($value)
{
$this->setToken($value);
return $this;
}
/**
* Checks if Token is set
*
* @return bool true if Token property is set
*/
public function isSetToken()
{
return !is_null($this->_fields['Token']['FieldValue']);
}
}