class Commission

Properties

protected int $factor
protected int $price

Methods

__construct($price)

Create a new commission instance.

float
factor()

Get the factor.

int
value()

Get the commision value from price.

int
total()

Get the total price including the commision.

static int
subtract(int $price)

Subtract the commission from the given price.

Details

at line 23
__construct($price)

Create a new commission instance.

Parameters

$price

at line 34
float factor()

Get the factor.

Return Value

float

at line 44
int value()

Get the commision value from price.

Return Value

int

at line 54
int total()

Get the total price including the commision.

Return Value

int

at line 65
static int subtract(int $price)

Subtract the commission from the given price.

Parameters

int $price

Return Value

int