{ $properties = array('name' => $name); return $this->getPricingComponentWithProperties($properties); } /** * Returns (if existent; otherwise NULL) the Bf_PricingComponent who has properties matching those * provided. * @param array the Bf_PricingComponent properties upon which to match * @return Bf_PricingComponent The matching Bf_PricingComponent (if any; otherwise NULL) */ public function getPricingComponentWithProperties(array $properties) { $pricingComponents = $this->getPricingComponents(); return Bf_BillingEntity::fromCollectionFindFirstWhoMatchesProperties($pricingComponents, $properties); } /** * Retrieves a quote for the price of the specified quantities of pricing components of the product rate plan * @see Bf_Quote::getQuote() * @return Bf_APIQuote The price quote */ public function getQuote(array $namesToValues, array $quoteOptions = array('couponCodes' => array(), 'quoteFor' => 'InitialPeriod')) { return Bf_Quote::getQuote($this, $namesToValues, $quoteOptions); } public static function initStatics() { self::$_resourcePath = new Bf_ResourcePath('product-rate-plans', 'productRatePlan'); } } Bf_ProductRatePlan::initStatics();