Exemplo n.º 1
0
 /**
  * Gets the sell price for this BP
  * 
  * @param int $maxPriceDataAge the maximum price data age in seconds
  * 
  * @return float the sell price for default region as calculated in EmdrPriceUpdate, or basePrice if the BP cannot
  * be sold on the market
  * @throws \iveeCore\Exceptions\NoPriceDataAvailableException if no buy price available
  * @throws \iveeCore\Exceptions\PriceDataTooOldException if a maxPriceDataAge has been specified and the data is 
  * too old
  */
 public function getSellPrice($maxPriceDataAge = null)
 {
     //some BPs cannot be sold on the market
     if (empty($this->marketGroupID)) {
         return $this->basePrice;
     } else {
         return parent::getSellPrice($maxPriceDataAge);
     }
 }