Ejemplo n.º 1
0
 /**
  * Saves an User Account into the database
  * @param MailAccount $account
  * @return MailAccount
  */
 public function save(MailAccount $account)
 {
     if (is_null($account->getId())) {
         return $this->insert($account);
     } else {
         $this->update($account);
         return $account;
     }
 }
Ejemplo n.º 2
0
 /**
  * @return int
  */
 public function getId()
 {
     return $this->account->getId();
 }