Пример #1
0
 public function isBuyMuni(Account $account, Subclass $subclass)
 {
     $ria = $account->getClient()->getRia();
     if (!$ria->getIsUseMunicipalBond() || !$account->isTaxable() || !$subclass->hasMuniFund()) {
         return false;
     }
     $client = $account->getClient();
     if ($client->getTaxBracket() < $client->getRia()->getClientTaxBracket()) {
         return false;
     }
     return true;
 }
Пример #2
0
 public function testHasMuniFund()
 {
     $this->assertTrue($this->subclass->hasMuniFund());
     $newSubclass = new Subclass();
     $this->assertFalse($newSubclass->hasMuniFund());
 }