/** * Create default Admin Spec for RIA * * @param User $ria * @return BillingSpec */ public function initDefaultAdminSpec(User $ria) { $billingSpec = new BillingSpec(); $billingSpec->setType(BillingSpec::TYPE_TIER); $billingSpec->setName('Admin spec for ' . $ria->getRiaCompanyInformation()->getName()); $billingSpec->addAppointedUser($ria); $billingSpec->setMinimalFee(0.0); return $billingSpec; }
protected function getRiaUser() { $ria = new User(); $adminBillingSpec = new BillingSpec(); $adminBillingSpec->setName('Admin Billing Spec for RIA TEST'); $adminBillingSpec->addAppointedUser($ria); $adminBillingSpec->setFees($this->returnAdminFees()); $adminBillingSpec->setMaster(true); $adminBillingSpec->setType(BillingSpec::TYPE_TIER); $adminBillingSpec->setMinimalFee(0); $ria->setAppointedBillingSpec($adminBillingSpec); return $ria; }