ProductDto
in package
implements
JsonSerializable
PayU product Data Transfer Object class.
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
- $name : string
- $quantity : int
- $unitPrice : string
- $virtual : bool|null
- __construct() : mixed
- Construct.
- jsonSerialize() : mixed
- {@inheritDoc}
Properties
$name
private
string
$name
Product name
$quantity
private
int
$quantity
Quantity
$unitPrice
private
string
$unitPrice
Unit price in pennies
$virtual
private
bool|null
$virtual
Is product virtual?
Methods
__construct()
Construct.
public
__construct(array<string|int, mixed> $productData) : mixed
Parameters
- $productData : array<string|int, mixed>
Return values
mixed —jsonSerialize()
{@inheritDoc}
public
jsonSerialize() : mixed