# give/4.18.0/src/PaymentGateways/Gateways/Stripe/ValueObjects/PaymentMethod.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 31 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/PaymentGateways/Gateways/Stripe/ValueObjects/PaymentMethod.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/PaymentGateways/Gateways/Stripe/ValueObjects/PaymentMethod.php
- Modified: 2022-06-29T23:03:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/PaymentGateways/Gateways/Stripe/ValueObjects/PaymentMethod.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\Gateways\Stripe\ValueObjects;

/**
 * @since 2.19.0
 */
class PaymentMethod
{
    /** @var string */
    protected $paymentMethodId;

    /**
     * @since 2.19.0
     * @param $paymentMethodId
     */
    public function __construct( $paymentMethodId )
    {
        $this->paymentMethodId = $paymentMethodId;
    }

    /**
     * @since 2.19.0
     * @return string
     */
    public function id(): string
    {
        return $this->paymentMethodId;
    }
}

```
