TokenCommandAttributeTrait
Trait TokenCommandAttributeTrait
Trait containing methods to manage the token attribute of Yigim payment system commands. The token attribute represents the card's unique token (optional).
Table of Contents
Properties
- $token : string|null
- The card's unique token.
Methods
- getToken() : string|null
- Get the token attribute.
- setToken() : void
- Set the token attribute.
Properties
$token
The card's unique token.
private
string|null
$token
= null
Methods
getToken()
Get the token attribute.
public
getToken() : string|null
Return values
string|null —The card's unique token, or null if not set.
setToken()
Set the token attribute.
public
setToken(string $token) : void
Parameters
- $token : string
-
The card's unique token.