type == "percent") { $commissionPrice = $price > 0 ? (($price * $this->value) / 100) : 0; } else { $commissionPrice = $this->value; } return $commissionPrice; } }