InvoiceFormats extends Component
Invoice Format factory
Table of Contents
Properties
| $components | |
| $helpers | |
| $models |
Methods
| __construct() | |
| create() | Returns an instance of the requested invoice format |
| listFormats() | Lists all available invoice formats by scanning directories |
Methods
__construct()
public
__construct() : mixed
create()
Returns an instance of the requested invoice format
public
static create(string $format_name) : mixed
Parameters
- $format_name : string
-
The name of the invoice format to instantiate
Tags
Return values
mixed —An object of type $format_name
listFormats()
Lists all available invoice formats by scanning directories
public
static listFormats() : array<string|int, mixed>
Return values
array<string|int, mixed> —An associative array where key is format_name and value is the display name