RateType
extends ServiceComponent
in package
Custom rate type.
Retrieves and formats data for a rate type.
Tags
Table of Contents
Properties
- $attach : string
- Attach to project or service.
- $form_description : string
- Form description.
- $ID : int|string
- The post ID or 'flat'.
- $minimum : int
- Minimum number of units required to book.
- $plural : string
- Plural unit.
- $service_ids : array<string|int, mixed>
- Service IDs.
- $singular : string
- Singular unit.
- $slug : string
- The post name.
- $title : string
- The post title.
Methods
- __construct() : mixed
- Constructor method.
Properties
$attach
Attach to project or service.
public
string
$attach
$form_description
Form description.
public
string
$form_description
$ID
The post ID or 'flat'.
public
int|string
$ID
$minimum
Minimum number of units required to book.
public
int
$minimum
$plural
Plural unit.
public
string
$plural
$service_ids
Service IDs.
public
array<string|int, mixed>
$service_ids
An array of service IDs that use the rate type.
$singular
Singular unit.
public
string
$singular
$slug
The post name.
public
string
$slug
$title
The post title.
public
string
$title
Methods
__construct()
Constructor method.
public
__construct(int $post_id) : mixed
Parameters
- $post_id : int