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; }
public function testSetAccountId() { $this->rebalancerAction->setAccountId(78); $this->assertEquals(78, $this->rebalancerAction->getAccountId()); }