Exemplo n.º 1
0
 /**
  * @return void
  * @throws \InvalidArgumentException
  */
 public function fetchAccountData()
 {
     if (intval($this->accountId) > 0) {
         $this->account = $this->moneyAccountDao->fetchOne(['id' => $this->accountId]);
     } else {
         throw new \InvalidArgumentException('Money account id is in bad format.');
     }
 }