AbstractDescription implements DescriptionInterface
AbstractYes
Abstract class for descriptions
Attributes
- #[AllowDynamicProperties]
Table of Contents
Interfaces
| DescriptionInterface | Description interface |
Properties
| $date | |
| $options |
Methods
| __construct() | Init |
| _() | Shortcut for Language::_() |
| getProrateFields() | Retrieves a set of proration meta fields used in the descriptions |
Methods
__construct()
Init
public
__construct(Date $date[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $date : Date
- $options : array<string|int, mixed> = []
_()
Shortcut for Language::_()
protected
_(string $name) : mixed
Parameters
- $name : string
-
The name of the language key to fetch
getProrateFields()
Retrieves a set of proration meta fields used in the descriptions
protected
getProrateFields(array<string|int, mixed> $meta) : array<string|int, mixed>
Parameters
- $meta : array<string|int, mixed>
-
An array of meta information
Return values
array<string|int, mixed> —An array of prorate fields