Documentation

PaymentMethod
in package
implements JsonSerializable

Class PaymentMethod

Tags
ORM\Entity

(repositoryClass="Vatjar\Data\Repository\PaymentMethodsRepository")

ORM\Table

(name="payment_methods")

Table of Contents

Interfaces

JsonSerializable

Constants

CREDIT_CARD_METHOD  = 2
DIRECT_DEBIT_METHOD  = 1

Properties

$details  : array<string|int, mixed>
$id  : int|null
$isPrimary  : bool
$paymentSourceId  : string|null
$type  : int|null
$userAccount  : UserAccount|null

Methods

getDetails()  : array<string|int, mixed>
getId()  : int|null
getIsPrimary()  : bool|null
getPaymentSourceId()  : string|null
getType()  : int|null
getUserAccount()  : UserAccount|null
jsonSerialize()  : mixed
setDetails()  : self
setId()  : mixed
setIsPrimary()  : mixed
setPaymentSourceId()  : mixed
setType()  : mixed
setUserAccount()  : mixed

Constants

Properties

$details

private array<string|int, mixed> $details
Tags
ORM\Column

(type="json", name="details")

$id

private int|null $id
Tags
ORM\Id

()

ORM\GeneratedValue

()

ORM\Column

(type="integer")

$isPrimary

private bool $isPrimary
Tags
ORM\Column

(name="is_primary", type="boolean")

$paymentSourceId

private string|null $paymentSourceId
Tags
ORM\Column

(name="payment_source_id",type="string")

$type

private int|null $type
Tags
ORM\Column

(name="type", type="integer")

$userAccount

private UserAccount|null $userAccount
Tags
ORM\ManyToOne

(targetEntity="UserAccount", inversedBy="paymentMethod")

ORM\JoinColumn

(name="user_id", referencedColumnName="id")

Methods

getDetails()

public getDetails() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIsPrimary()

public getIsPrimary() : bool|null
Return values
bool|null

getPaymentSourceId()

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

getType()

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

setDetails()

public setDetails(array<string|int, mixed> $details) : self
Parameters
$details : array<string|int, mixed>
Return values
self

setId()

public setId(int|null $id) : mixed
Parameters
$id : int|null

setIsPrimary()

public setIsPrimary(bool|null $isPrimary) : mixed
Parameters
$isPrimary : bool|null

setPaymentSourceId()

public setPaymentSourceId(string|null $paymentSourceId) : mixed
Parameters
$paymentSourceId : string|null

setType()

public setType(int|null $type) : mixed
Parameters
$type : int|null

        
On this page

Search results