errors = new Collection; $this->transaction = new ImportTransaction; $this->asset = new ImportAccount; $this->opposing = new ImportAccount; } public function setHash(string $hash) { $this->hash = $hash; } /** * @param User $user */ public function setUser(User $user) { $this->user = $user; } /** * @param array $array */ public function setValue(array $array) { switch ($array['role']) { default: throw new FireflyException(sprintf('ImportObject cannot handle "%s" with value "%s".', $array['role'], $array['value'])); case 'account-id': $this->asset->setAccountId($array['value']); break; } //var_dump($array); //exit; } }