00001 <?php 00002 00006 class oxOutOfStockException extends oxArticleException 00007 { 00013 private $_iRemainingAmount = 0; 00014 00022 public function setRemainingAmount( $iRemainingAmount ) 00023 { 00024 $this->_iRemainingAmount = (int) $iRemainingAmount; 00025 } 00026 00032 public function getRemainingAmount() 00033 { 00034 return $this->_iRemainingAmount; 00035 } 00036 00043 public function getString() 00044 { 00045 return __CLASS__.'-'.parent::getString()." Remaining Amount --> ".$this->_iRemainingAmount; 00046 } 00047 00056 public function getValues() 00057 { 00058 $aRes = parent::getValues(); 00059 $aRes['remainingAmount'] = $this->getRemainingAmount(); 00060 return $aRes; 00061 } 00062 }