/**
  * @test
  */
 public function itShouldGuardAgainstEmptyValue()
 {
     $this->setExpectedException('Assert\\InvalidArgumentException');
     TransactionId::fromString('');
 }
 /**
  * @param array $details
  * @return SofortPaymentMethodDetails
  */
 public static function fromArray(array $details)
 {
     return new static(array_key_exists('transaction_id', $details) ? TransactionId::fromString($details['transaction_id']) : null, array_key_exists('consumer_name', $details) ? ConsumerName::fromString($details['consumer_name']) : null, array_key_exists('consumer_iban', $details) ? Iban::fromString($details['consumer_iban']) : null, array_key_exists('consumer_bic', $details) ? SwiftBic::fromString($details['consumer_bic']) : null);
 }