ShippingMethod
in package
Class ShippingMethod
Table of Contents
- $id : ShippingMethodId
- $name : string
- __construct() : mixed
- create() : ShippingMethod
- id() : string
- name() : string
- toArray() : array<string, string>
Properties
$id
private
ShippingMethodId
$id
$name
private
string
$name
Methods
__construct()
public
__construct(ShippingMethodId $id, string $name) : mixed
Parameters
- $id : ShippingMethodId
- $name : string
Return values
mixed —create()
public
static create(ShippingMethodId $id, string $name) : ShippingMethod
Parameters
- $id : ShippingMethodId
- $name : string
Return values
ShippingMethod —id()
public
id() : string
Return values
string —name()
public
name() : string
Return values
string —toArray()
public
toArray() : array<string, string>