Source for file ReplaceableAttribute.php

Documentation is available at ReplaceableAttribute.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_ReplaceableAttribute
  32.  * 
  33.  * Properties:
  34.  * <ul>
  35.  * 
  36.  * <li>Name: string</li>
  37.  * <li>Value: string</li>
  38.  * <li>Replace: bool</li>
  39.  *
  40.  * </ul>
  41.  */ 
  42. {
  43.  
  44.  
  45.     /**
  46.      * Construct new Amazon_SimpleDB_Model_ReplaceableAttribute
  47.      * 
  48.      * @param mixed $data DOMElement or Associative Array to construct from.
  49.      * 
  50.      *  Valid properties:
  51.      *  <ul>
  52.      * 
  53.      *  <li>Name: string</li>
  54.      *  <li>Value: string</li>
  55.      *  <li>Replace: bool</li>
  56.      *
  57.      *  </ul>
  58.      */
  59.     public function __construct($data null)
  60.     {
  61.         $this->_fields = array (
  62.         'Name' => array('FieldValue' => null'FieldType' => 'string'),
  63.         'Value' => array('FieldValue' => null'FieldType' => 'string'),
  64.         'Replace' => array('FieldValue' => null'FieldType' => 'bool'),
  65.         );
  66.         parent::__construct($data);
  67.     }
  68.  
  69.         /**
  70.      * Gets the value of the Name property.
  71.      * 
  72.      * @return string Name
  73.      */
  74.     public function getName(
  75.     {
  76.         return $this->_fields['Name']['FieldValue'];
  77.     }
  78.  
  79.     /**
  80.      * Sets the value of the Name property.
  81.      * 
  82.      * @param string Name
  83.      * @return this instance
  84.      */
  85.     public function setName($value
  86.     {
  87.         $this->_fields['Name']['FieldValue'$value;
  88.         return $this;
  89.     }
  90.  
  91.     /**
  92.      * Sets the value of the Name and returns this instance
  93.      * 
  94.      * @param string $value Name
  95.      * @return Amazon_SimpleDB_Model_ReplaceableAttribute instance
  96.      */
  97.     public function withName($value)
  98.     {
  99.         $this->setName($value);
  100.         return $this;
  101.     }
  102.  
  103.  
  104.     /**
  105.      * Checks if Name is set
  106.      * 
  107.      * @return bool true if Name  is set
  108.      */
  109.     public function isSetName()
  110.     {
  111.         return !is_null($this->_fields['Name']['FieldValue']);
  112.     }
  113.  
  114.     /**
  115.      * Gets the value of the Value property.
  116.      * 
  117.      * @return string Value
  118.      */
  119.     public function getValue(
  120.     {
  121.         return $this->_fields['Value']['FieldValue'];
  122.     }
  123.  
  124.     /**
  125.      * Sets the value of the Value property.
  126.      * 
  127.      * @param string Value
  128.      * @return this instance
  129.      */
  130.     public function setValue($value
  131.     {
  132.         $this->_fields['Value']['FieldValue'$value;
  133.         return $this;
  134.     }
  135.  
  136.     /**
  137.      * Sets the value of the Value and returns this instance
  138.      * 
  139.      * @param string $value Value
  140.      * @return Amazon_SimpleDB_Model_ReplaceableAttribute instance
  141.      */
  142.     public function withValue($value)
  143.     {
  144.         $this->setValue($value);
  145.         return $this;
  146.     }
  147.  
  148.  
  149.     /**
  150.      * Checks if Value is set
  151.      * 
  152.      * @return bool true if Value  is set
  153.      */
  154.     public function isSetValue()
  155.     {
  156.         return !is_null($this->_fields['Value']['FieldValue']);
  157.     }
  158.  
  159.     /**
  160.      * Gets the value of the Replace property.
  161.      * 
  162.      * @return bool Replace
  163.      */
  164.     public function getReplace(
  165.     {
  166.         return $this->_fields['Replace']['FieldValue'];
  167.     }
  168.  
  169.     /**
  170.      * Sets the value of the Replace property.
  171.      * 
  172.      * @param bool Replace
  173.      * @return this instance
  174.      */
  175.     public function setReplace($value
  176.     {
  177.         $this->_fields['Replace']['FieldValue'$value;
  178.         return $this;
  179.     }
  180.  
  181.     /**
  182.      * Sets the value of the Replace and returns this instance
  183.      * 
  184.      * @param bool $value Replace
  185.      * @return Amazon_SimpleDB_Model_ReplaceableAttribute instance
  186.      */
  187.     public function withReplace($value)
  188.     {
  189.         $this->setReplace($value);
  190.         return $this;
  191.     }
  192.  
  193.  
  194.     /**
  195.      * Checks if Replace is set
  196.      * 
  197.      * @return bool true if Replace  is set
  198.      */
  199.     public function isSetReplace()
  200.     {
  201.         return !is_null($this->_fields['Replace']['FieldValue']);
  202.     }
  203.  
  204.  
  205.  
  206.  
  207. }

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