Sulu\Bundle\ContactBundle\Entity\BankAccount::setBic PHP Метод

setBic() публичный Метод

Set bic.
public setBic ( string $bic ) : BankAccount
$bic string
Результат BankAccount
    public function setBic($bic)
    {
        $this->bic = $bic;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * 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;
 }