/**
* Gère les informations sur un tarif de location.
*
* @param String duration Durée de location
* @param String value Montant de la location
* @access public
* @since 1.0
*/
function ProductPrice(duration, value) {
	/**
	 * Durée de location.
	 *
	 * @var String
	 * @access private
	 * @since 1.0
	 */
	this.duration = duration;
	
	/**
	 * Tarif de location.
	 *
	 * @var Float
	 * @access private
	 * @since 1.0
	 */
	this.value = value;
	
	/**
	* Modifie la durée de location.
	*
	* @param String value Durée de location
	* @access public
	* @since 1.0
	*/
	this.setDuration = function(value) {
		this.duration = value;
	}
	
	/**
	* Modifie le tarif de location.
	*
	* @param String value Montant de la location
	* @access public
	* @since 1.0
	*/
	this.setValue = function(value) {
		this.value = value;
	}
	
	/**
	* Renvoit les informations sur l'objet.
	*
	* @return String Information sur l'objet
	* @access public
	* @since 1.0
	*/
	this.toString = function() {
		return 'duration = ' + this.duration + ', value = ' + this.value;
	}
}

