src/Order/Transaction/PaymentMethodDetails/CreditCardPaymentMethodDetails.php
public static function fromArray(array $details)
    {
        return new static(
          array_key_exists('card_expiry', $details)
            ? CardExpiry::fromString($details['card_expiry']) : null,
          array_key_exists('cardholder_name', $details)
            ? CardholderName::fromString($details['cardholder_name']) : null,
          array_key_exists('liability_shift', $details)
            ? LiabilityShift::fromBoolean($details['liability_shift']) : null,
          array_key_exists('truncated_pan', $details)
            ? TruncatedPan::fromString($details['truncated_pan']) : null,
          array_key_exists('vault_token', $details)
            ? VaultToken::fromString($details['vault_token']) : null
        );
    }
public static function fromArray(array $details)
    {
        return new static(
          array_key_exists('card_expiry', $details)
            ? CardExpiry::fromString($details['card_expiry']) : null,
          array_key_exists('cardholder_name', $details)
            ? CardholderName::fromString($details['cardholder_name']) : null,
          array_key_exists('liability_shift', $details)
            ? LiabilityShift::fromBoolean($details['liability_shift']) : null,
          array_key_exists('truncated_pan', $details)
            ? TruncatedPan::fromString($details['truncated_pan']) : null,
          array_key_exists('vault_token', $details)
            ? VaultToken::fromString($details['vault_token']) : null
        );
    }
@param array $details

@return CreditCardPaymentMethodDetails