Ejemplo n.º 1
0
 public function testSetClient()
 {
     $newClient = new Client();
     $newClient->setId(789);
     $this->rebalancerAction->setClient($newClient);
     $this->assertEquals(789, $this->rebalancerAction->getClient()->getId());
 }
Ejemplo n.º 2
0
 public function getAccountsByRebalancerAction(RebalancerAction $rebalancerAction)
 {
     $client = $rebalancerAction->getClient();
     if ($client->isHouseholdLevelRebalancer()) {
         $collection = $this->findClientAccounts($client);
     } else {
         $account = $this->findAccountById($rebalancerAction->getAccountId());
         $account->setClient($client);
         $collection = new AccountCollection();
         $collection->add($account);
     }
     return $collection;
 }