Documentation

Card
in package
implements ICard, JsonSerializable

Table of Contents

Interfaces

ICard
JsonSerializable

Properties

$expiryPrefix  : mixed
$client  : mixed
$cvv  : mixed
$expiry  : mixed
$firstName  : mixed
$lastName  : mixed
$name  : mixed
$number  : mixed

Methods

fromRequest()  : void
getClient()  : string
Get the value of Client
getCvv()  : string
Get the value of Cvv
getExpiry()  : array<string|int, mixed>
Get the value of Expiry
getExpiryMonth()  : null
Get the expiry month value
getExpiryYear()  : null
Get the expiry year value
getFirstName()  : string
Get the value of First Name
getLastName()  : string
Get the value of Last Name
getName()  : string
Get the value of Name
getNumber()  : string
Get the value of Number
jsonSerialize()  : array<string|int, mixed>
setClient()  : self
Set the value of Client
setCvv()  : self
Set the value of Cvv
setExpiry()  : self
Set the value of Expiry
setFirstName()  : self
Set the value of First Name
setLastName()  : self
Set the value of Last Name
setName()  : self
Set the value of Name
setNumber()  : self
Set the value of Number
toValidatorArray()  : array<string|int, mixed>
normalizeRequest()  : mixed

Properties

$expiryPrefix

protected mixed $expiryPrefix = 20

$client

private mixed $client

$expiry

private mixed $expiry

$firstName

private mixed $firstName

$lastName

private mixed $lastName

$name

private mixed $name

$number

private mixed $number

Methods

fromRequest()

public fromRequest(UserWrapper $user, array<string|int, mixed> $postData) : void
Parameters
$user : UserWrapper
$postData : array<string|int, mixed>

getClient()

Get the value of Client

public getClient() : string
Return values
string

getCvv()

Get the value of Cvv

public getCvv() : string
Return values
string

getExpiry()

Get the value of Expiry

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

getExpiryMonth()

Get the expiry month value

public getExpiryMonth() : null
Return values
null

getExpiryYear()

Get the expiry year value

public getExpiryYear() : null
Return values
null

getFirstName()

Get the value of First Name

public getFirstName() : string
Return values
string

getLastName()

Get the value of Last Name

public getLastName() : string
Return values
string

getName()

Get the value of Name

public getName() : string
Return values
string

getNumber()

Get the value of Number

public getNumber() : string
Return values
string

jsonSerialize()

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

setClient()

Set the value of Client

public setClient(string $client) : self
Parameters
$client : string
Return values
self

setCvv()

Set the value of Cvv

public setCvv(string $cvv) : self
Parameters
$cvv : string
Return values
self

setExpiry()

Set the value of Expiry

public setExpiry(string $expiry) : self
Parameters
$expiry : string
Return values
self

setFirstName()

Set the value of First Name

public setFirstName(string $firstName) : self
Parameters
$firstName : string
Return values
self

setLastName()

Set the value of Last Name

public setLastName(string $lastName) : self
Parameters
$lastName : string
Return values
self

setName()

Set the value of Name

public setName(string $name) : self
Parameters
$name : string
Return values
self

setNumber()

Set the value of Number

public setNumber(string $number) : self
Parameters
$number : string
Return values
self

toValidatorArray()

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

normalizeRequest()

private normalizeRequest() : mixed

        
On this page

Search results