ItemDetails
in package
Table of Contents
- $image : string
- $itemNumber : string
- $title : string
- create() : self
- Creates a new instance of Item Details
- image() : string
- Returns the Image
- itemNumber() : string
- Returns the Item Number
- title() : string
- Returns the Title
- toArray() : array<string|int, mixed>
- Returns the content of this Value Object as an array
- __construct() : mixed
- Constructor
Properties
$image
private
string
$image
$itemNumber
private
string
$itemNumber
$title
private
string
$title
Methods
create()
Creates a new instance of Item Details
public
static create(string $itemNumber, string $title, string $image) : self
Parameters
- $itemNumber : string
- $title : string
- $image : string
Return values
self —image()
Returns the Image
public
image() : string
Return values
string —itemNumber()
Returns the Item Number
public
itemNumber() : string
Return values
string —title()
Returns the Title
public
title() : string
Return values
string —toArray()
Returns the content of this Value Object as an array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —__construct()
Constructor
private
__construct(string $itemNumber, string $title, string $image) : mixed
Parameters
- $itemNumber : string
- $title : string
- $image : string