Source for file Error.php

Documentation is available at Error.php

  1. <?php
  2. /** 
  3.  *  PHP Version 5
  4.  *
  5.  *  @category    Amazon
  6.  *  @package     Amazon_SimpleDB
  7.  *  @copyright   Copyright 2008 Amazon Technologies, Inc.
  8.  *  @link        http://aws.amazon.com
  9.  *  @license     http://aws.amazon.com/apache2.0  Apache License, Version 2.0
  10.  *  @version     2007-11-07
  11.  */
  12. /******************************************************************************* 
  13.  *    __  _    _  ___ 
  14.  *   (  )( \/\/ )/ __)
  15.  *   /__\ \    / \__ \
  16.  *  (_)(_) \/\/  (___/
  17.  * 
  18.  *  Amazon Simple DB PHP5 Library
  19.  *  Generated: Thu Aug 28 06:20:51 PDT 2008
  20.  * 
  21.  */
  22.  
  23. /**
  24.  *  @see Amazon_SimpleDB_Model
  25.  */
  26. require_once ('Amazon/SimpleDB/Model.php');  
  27.  
  28.     
  29.  
  30. /**
  31.  * Amazon_SimpleDB_Model_Error
  32.  * 
  33.  * Properties:
  34.  * <ul>
  35.  * 
  36.  * <li>Type: string</li>
  37.  * <li>Code: string</li>
  38.  * <li>Message: string</li>
  39.  * <li>Detail: Amazon_SimpleDB_Model_Object</li>
  40.  *
  41.  * </ul>
  42.  */ 
  43. {
  44.  
  45.  
  46.     /**
  47.      * Construct new Amazon_SimpleDB_Model_Error
  48.      * 
  49.      * @param mixed $data DOMElement or Associative Array to construct from.
  50.      * 
  51.      *  Valid properties:
  52.      *  <ul>
  53.      * 
  54.      *  <li>Type: string</li>
  55.      *  <li>Code: string</li>
  56.      *  <li>Message: string</li>
  57.      *  <li>Detail: Amazon_SimpleDB_Model_Object</li>
  58.      *
  59.      *  </ul>
  60.      */
  61.     public function __construct($data null)
  62.     {
  63.         $this->_fields = array (
  64.         'Type' => array('FieldValue' => null'FieldType' => 'string'),
  65.         'Code' => array('FieldValue' => null'FieldType' => 'string'),
  66.         'Message' => array('FieldValue' => null'FieldType' => 'string'),
  67.         'Detail' => array('FieldValue' => null'FieldType' => 'Amazon_SimpleDB_Model_Object'),
  68.         );
  69.         parent::__construct($data);
  70.     }
  71.  
  72.         /**
  73.      * Gets the value of the Type property.
  74.      * 
  75.      * @return string Type
  76.      */
  77.     public function getType(
  78.     {
  79.         return $this->_fields['Type']['FieldValue'];
  80.     }
  81.  
  82.     /**
  83.      * Sets the value of the Type property.
  84.      * 
  85.      * @param string Type
  86.      * @return this instance
  87.      */
  88.     public function setType($value
  89.     {
  90.         $this->_fields['Type']['FieldValue'$value;
  91.         return $this;
  92.     }
  93.  
  94.     /**
  95.      * Sets the value of the Type and returns this instance
  96.      * 
  97.      * @param string $value Type
  98.      * @return Amazon_SimpleDB_Model_Error instance
  99.      */
  100.     public function withType($value)
  101.     {
  102.         $this->setType($value);
  103.         return $this;
  104.     }
  105.  
  106.  
  107.     /**
  108.      * Checks if Type is set
  109.      * 
  110.      * @return bool true if Type  is set
  111.      */
  112.     public function isSetType()
  113.     {
  114.         return !is_null($this->_fields['Type']['FieldValue']);
  115.     }
  116.  
  117.     /**
  118.      * Gets the value of the Code property.
  119.      * 
  120.      * @return string Code
  121.      */
  122.     public function getCode(
  123.     {
  124.         return $this->_fields['Code']['FieldValue'];
  125.     }
  126.  
  127.     /**
  128.      * Sets the value of the Code property.
  129.      * 
  130.      * @param string Code
  131.      * @return this instance
  132.      */
  133.     public function setCode($value
  134.     {
  135.         $this->_fields['Code']['FieldValue'$value;
  136.         return $this;
  137.     }
  138.  
  139.     /**
  140.      * Sets the value of the Code and returns this instance
  141.      * 
  142.      * @param string $value Code
  143.      * @return Amazon_SimpleDB_Model_Error instance
  144.      */
  145.     public function withCode($value)
  146.     {
  147.         $this->setCode($value);
  148.         return $this;
  149.     }
  150.  
  151.  
  152.     /**
  153.      * Checks if Code is set
  154.      * 
  155.      * @return bool true if Code  is set
  156.      */
  157.     public function isSetCode()
  158.     {
  159.         return !is_null($this->_fields['Code']['FieldValue']);
  160.     }
  161.  
  162.     /**
  163.      * Gets the value of the Message property.
  164.      * 
  165.      * @return string Message
  166.      */
  167.     public function getMessage(
  168.     {
  169.         return $this->_fields['Message']['FieldValue'];
  170.     }
  171.  
  172.     /**
  173.      * Sets the value of the Message property.
  174.      * 
  175.      * @param string Message
  176.      * @return this instance
  177.      */
  178.     public function setMessage($value
  179.     {
  180.         $this->_fields['Message']['FieldValue'$value;
  181.         return $this;
  182.     }
  183.  
  184.     /**
  185.      * Sets the value of the Message and returns this instance
  186.      * 
  187.      * @param string $value Message
  188.      * @return Amazon_SimpleDB_Model_Error instance
  189.      */
  190.     public function withMessage($value)
  191.     {
  192.         $this->setMessage($value);
  193.         return $this;
  194.     }
  195.  
  196.  
  197.     /**
  198.      * Checks if Message is set
  199.      * 
  200.      * @return bool true if Message  is set
  201.      */
  202.     public function isSetMessage()
  203.     {
  204.         return !is_null($this->_fields['Message']['FieldValue']);
  205.     }
  206.  
  207.     /**
  208.      * Gets the value of the Detail.
  209.      * 
  210.      * @return Error.Detail Detail
  211.      */
  212.     public function getDetail(
  213.     {
  214.         return $this->_fields['Detail']['FieldValue'];
  215.     }
  216.  
  217.     /**
  218.      * Sets the value of the Detail.
  219.      * 
  220.      * @param Error.Detail Detail
  221.      * @return void 
  222.      */
  223.     public function setDetail($value
  224.     {
  225.         $this->_fields['Detail']['FieldValue'$value;
  226.         return;
  227.     }
  228.  
  229.     /**
  230.      * Sets the value of the Detail  and returns this instance
  231.      * 
  232.      * @param Object $value Detail
  233.      * @return Amazon_SimpleDB_Model_Error instance
  234.      */
  235.     public function withDetail($value)
  236.     {
  237.         $this->setDetail($value);
  238.         return $this;
  239.     }
  240.  
  241.  
  242.     /**
  243.      * Checks if Detail  is set
  244.      * 
  245.      * @return bool true if Detail property is set
  246.      */
  247.     public function isSetDetail()
  248.     {
  249.         return !is_null($this->_fields['Detail']['FieldValue']);
  250.  
  251.     }
  252.  
  253.  
  254.  
  255.  
  256. }

Documentation generated on Thu, 28 Aug 2008 06:35:47 -0700 by phpDocumentor 1.4.2