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
$cvv
private
mixed
$cvv
$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
stringgetCvv()
Get the value of Cvv
public
getCvv() : string
Return values
stringgetExpiry()
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
nullgetExpiryYear()
Get the expiry year value
public
getExpiryYear() : null
Return values
nullgetFirstName()
Get the value of First Name
public
getFirstName() : string
Return values
stringgetLastName()
Get the value of Last Name
public
getLastName() : string
Return values
stringgetName()
Get the value of Name
public
getName() : string
Return values
stringgetNumber()
Get the value of Number
public
getNumber() : string
Return values
stringjsonSerialize()
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
selfsetCvv()
Set the value of Cvv
public
setCvv(string $cvv) : self
Parameters
- $cvv : string
Return values
selfsetExpiry()
Set the value of Expiry
public
setExpiry(string $expiry) : self
Parameters
- $expiry : string
Return values
selfsetFirstName()
Set the value of First Name
public
setFirstName(string $firstName) : self
Parameters
- $firstName : string
Return values
selfsetLastName()
Set the value of Last Name
public
setLastName(string $lastName) : self
Parameters
- $lastName : string
Return values
selfsetName()
Set the value of Name
public
setName(string $name) : self
Parameters
- $name : string
Return values
selfsetNumber()
Set the value of Number
public
setNumber(string $number) : self
Parameters
- $number : string
Return values
selftoValidatorArray()
public
toValidatorArray() : array<string|int, mixed>
Return values
array<string|int, mixed>normalizeRequest()
private
normalizeRequest() : mixed