ProductDTO
in package
Class ProductDTO
Table of Contents
- $image : string
- $name : string
- $productId : int
- __construct() : mixed
- image() : string
- name() : string
- productId() : int
- toArray() : array<string|int, mixed>
Properties
$image
private
string
$image
$name
private
string
$name
$productId
private
int
$productId
Methods
__construct()
public
__construct(int $productId, string $name, string $image) : mixed
Parameters
- $productId : int
- $name : string
- $image : string
Return values
mixed —image()
public
image() : string
Return values
string —name()
public
name() : string
Return values
string —productId()
public
productId() : int
Return values
int —toArray()
public
toArray() : array<string|int, mixed>