/** * Sets amount and currency of the record depending on plan (and on input options if applicable) * * @param cbPaidProduct $plan */ public function getCurrencyAmount( &$plan ) { $this->amount = $plan->get( 'rate' ); $this->currency = $plan->currency(); }