ExampleClass
| ๐ Overview: 2 Properties | 1 Constructor | 2 Functions | 1 Getters |
๐ Description
Creates example object with initial inventory count
๐ Last updated: 2025-12-10T11:45:22.861Z
๐ Table of Contents
- ๐ Properties (2)
- ๐๏ธ Constructor (1 param)
- โ๏ธ Functions
- Regular Functions
- calculateValue (1 param) โ
Real - processOrder (2 params) โ
Boolean
- calculateValue (1 param) โ
- Computed Attributes (Getters/Setters/Query/OrderBy)
- ItemCount ๐ โ
Integer
- ItemCount ๐ โ
- Regular Functions
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Title | Text | - | The title of the item |
Count | Integer | 0 | Number of items in stock |
Constructor
constructor
[๐๏ธ constructor]
Class constructor($InitialCount : Integer)
Creates example object with initial inventory count
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$InitialCount | Integer | - | - |
Functions
Regular Functions
calculateValue
Function calculateValue($UnitPrice : Real) -> Real
Calculates total inventory value by multiplying count by unit price
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$UnitPrice | Real | - | - |
Returns: Real
processOrder
Function processOrder($Quantity : Integer; $DiscountPercent : Real) -> Boolean
Processes order by reducing count if sufficient quantity available, returns success status
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$Quantity | Integer | - | - |
$DiscountPercent | Real | - | - |
Returns: Boolean
Computed Attributes (Getters/Setters/Query/OrderBy)
ItemCount
[๐ get only]
Function get ItemCount -> Integer
Returns the current item count
Returns: Integer
Generated from ExampleClass.4dm