File "PaymentSource.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/PaymentSource.php
File size: 947 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* The PaymentSource object.
*
* @package WooCommerce\PayPalCommerce\ApiClient\Entity
*/
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\ApiClient\Entity;
use stdClass;
/**
* Class PaymentSource
*/
class PaymentSource {
/**
* Payment source name.
*
* @var string
*/
private $name;
/**
* Payment source properties.
*
* @var object
*/
private $properties;
/**
* PaymentSource constructor.
*
* @param string $name Payment source name.
* @param object $properties Payment source properties.
*/
public function __construct( string $name, object $properties ) {
$this->name = $name;
$this->properties = $properties;
}
/**
* Payment source name.
*
* @return string
*/
public function name(): string {
return $this->name;
}
/**
* Payment source properties.
*
* @return object
*/
public function properties(): object {
return $this->properties;
}
}