. */ /** * AmazonProduct_Condition * * This file contains the class AmazonProduct_Condition * * @author Matthew John Denton * @package com.mdbitz.amazon.product */ /** * AmazonProduct_Condition defines the Amazon supported condition types * * @package com.mdbitz.amazon.product */ class AmazonProduct_Condition implements AmazonProduct_iValidConstant { /** * All */ const ALL = "All"; /** * New */ const _NEW = "New"; /** * Used */ const USED = "Used"; /** * Collectible */ const COLLECTIBLE = "Collectible"; /** * Refurbished */ const REFURBISHED = "Refurbished"; /** * is String a Valid Condition Constant * * @param obj value to test * @return boolean */ public static function isValid( $obj ) { if ($obj == self::ALL || $obj == self::COLLECTIBLE || $obj == self::REFURBISHED || $obj == self::USED || $obj == self::_NEW ) { return true; } else { return false; } } }