ButtonMapItem
ButtonMapItem
- Full name:
\Onslip360\API\ButtonMapItem
- Parent class:
\Onslip360\Onslip360Object
Properties
action
public \Onslip360\API\ButtonMapItem\Action $action
x
public int $x
y
public int $y
amount
public float|null $amount
buttonMap
public int|null $buttonMap
discountRate
public float|null $discountRate
discountType
public \Onslip360\API\ButtonMapItem\DiscountType|null $discountType
name
public string|null $name
product
public int|null $product
theme
public int|null $theme
uri
public string|null $uri
Methods
__construct
public __construct(\Onslip360\API\ButtonMapItem\Action $action, int $x, int $y, float|null $amount = null, int|null $buttonMap = null, float|null $discountRate = null, \Onslip360\API\ButtonMapItem\DiscountType|null $discountType = null, string|null $name = null, int|null $product = null, int|null $theme = null, string|null $uri = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$action | \Onslip360\API\ButtonMapItem\Action | |
$x | int | |
$y | int | |
$amount | float|null | |
$buttonMap | int|null | |
$discountRate | float|null | |
$discountType | \Onslip360\API\ButtonMapItem\DiscountType|null | |
$name | string|null | |
$product | int|null | |
$theme | int|null | |
$uri | string|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05