Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::updateBankAccount PHP Méthode

updateBankAccount() protected méthode

Updates the given note.
protected updateBankAccount ( BankAccount $entity, string $data ) : boolean
$entity Sulu\Bundle\ContactBundle\Entity\BankAccount The phone object to update
$data string The entry with the new data
Résultat boolean 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;
    }