/**
* Updates the given note.
*
* @param BankAccount $entity The phone object to update
* @param string $data The entry with the new data
*
* @return bool True if successful, otherwise false
*/
protected function updateBankAccount(BankAccount $entity, $data)
{
$success = true;
$entity->setBankName($data['bankName']);
$entity->setBic($data['bic']);
$entity->setIban($data['iban']);
$entity->setPublic($this->getBooleanValue(array_key_exists('public', $data) ? $data['public'] : false));
return $success;
}