/** * Gets the buy price for this BP * * @param int $maxPriceDataAge the maximum price data age in seconds * * @return float the buy 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 getBuyPrice($maxPriceDataAge = null) { //some BPs cannot be sold on the market if (empty($this->marketGroupID)) { return $this->basePrice; } else { return parent::getBuyPrice($maxPriceDataAge); } }