class Tax extends TranslatableAbstract implements PrimaryKeyInterface, Translatable, Serializable

Class Tax

Properties

protected string $locale Entity locale from TranslatableAbstract
protected int $id
protected string $name Name of tax
protected DateTime $createdAt Date when tax was created
protected ArrayCollection $orders Collection of orders
protected float $ratio Ratio

Methods

setTranslatableLocale(string $locale)

Sets translatable locale

string
getTranslatableLocale()

No description

__construct()

Tax constructor.

integer
getId()

No description

float
getRatio()

No description

Tax
setRatio(float $ratio)

No description

ArrayCollection
getOrders()

No description

Tax
addOrder(Order $order)

No description

removeOrder(Order $order)

{@inheritdoc}

getCreatedAt()

No description

string
getName()

No description

Tax
setName(string $name)

No description

string
serialize()

(PHP 5 >= 5.1.0)
String representation of object

void
unserialize(string $serialized)

(PHP 5 >= 5.1.0)
Constructs the object

bool
equals(Tax $tax)

No description

Details

in TranslatableAbstract at line 37
setTranslatableLocale(string $locale)

Sets translatable locale

Parameters

string $locale

in TranslatableAbstract at line 47
string getTranslatableLocale()

Return Value

string

at line 96
__construct()

Tax constructor.

at line 104
integer getId()

Return Value

integer

at line 112
float getRatio()

Return Value

float

at line 122
Tax setRatio(float $ratio)

Parameters

float $ratio

Return Value

Tax

at line 132
ArrayCollection getOrders()

Return Value

ArrayCollection

at line 142
Tax addOrder(Order $order)

Parameters

Order $order

Return Value

Tax

at line 152
removeOrder(Order $order)

{@inheritdoc}

Parameters

Order $order

at line 162
DateTime getCreatedAt()

Return Value

DateTime

at line 170
string getName()

Return Value

string

at line 180
Tax setName(string $name)

Parameters

string $name

Return Value

Tax

at line 195
string serialize()

(PHP 5 >= 5.1.0)
String representation of object

Return Value

string the string representation of the object or null

at line 218
void unserialize(string $serialized)

(PHP 5 >= 5.1.0)
Constructs the object

Parameters

string $serialized The string representation of the object.

Return Value

void

at line 232
bool equals(Tax $tax)

Parameters

Tax $tax

Return Value

bool