Documentation

PaymentMethod
in package
implements DomainObjectInterface

This class has a nullable $id because TransactionService is just handing back the value that it receives, not caring about its data integrity.

Tags

Interfaces, Classes, Traits and Enums

DomainObjectInterface

Table of Contents

$brand  : string|null
$expMonth  : int|null
$expYear  : int|null
$id  : PaymentMethodId|null
$lastFour  : string|null
$paymentType  : string
__construct()  : mixed
brand()  : string|null
expMonth()  : int|null
expYear()  : int|null
id()  : PaymentMethodId|null
This id may be null on some TransactionService responses, however it can be expected to have a value in the context of creating a payment
lastFour()  : string|null
paymentType()  : string

Properties

Methods

__construct()

public __construct(PaymentMethodId|null $id, string $paymentType, string|null $brand, string|null $lastFour, int|null $expMonth, int|null $expYear) : mixed
Parameters
$id : PaymentMethodId|null
$paymentType : string
$brand : string|null
$lastFour : string|null
$expMonth : int|null
$expYear : int|null
Tags
Return values
mixed

brand()

public brand() : string|null
Return values
string|null

expMonth()

public expMonth() : int|null
Return values
int|null

expYear()

public expYear() : int|null
Return values
int|null

id()

This id may be null on some TransactionService responses, however it can be expected to have a value in the context of creating a payment

public id() : PaymentMethodId|null
Return values
PaymentMethodId|null

lastFour()

public lastFour() : string|null
Return values
string|null

paymentType()

public paymentType() : string
Return values
string

Search results