OrderStatus

Implements \OrderStatusInterface

Class OrderStatus

category

System

package

OrderStatus

subpackage

Entities

Methods

OrderStatus constructor.

__construct(\IntType|null $id = null) 

Arguments

$id

\IntType|null

Returns the order status label-color.

getColor() : string

Response

string

Color of order status label.

Returns the order status id.

getId() : integer|null

Response

integer|null

Returns the order status name by the given language id.

getName(\LanguageCode $languageCode) : string
Throws
\Exception

If no name exists by the given language id.

Arguments

$languageCode

\LanguageCode

Expected language code.

Response

string

Expected status name by given language id.

Returns the order status names.

getNames() : array

Response

array

Order status names.

Sets the order status label-color.

setColor(\StringType $color) : $this|\OrderStatus

Arguments

$color

\StringType

New color of order status label.

Response

$this|\OrderStatus

Same instance for chained method calls.

Sets the order status name.

setName(\LanguageCode $languageCode, \StringType $name) : $this|\OrderStatus

Arguments

$languageCode

\LanguageCode

Language code of order status name.

$name

\StringType

Order status name.

Response

$this|\OrderStatus

Same instance for chained method calls.

Properties

id

id : integer|null
var

Type(s)

integer|null

names

names : array
var

Type(s)

array

color

color : string
var

Type(s)

string