Documentation

MinimumRevenueExport implements FromCollection, WithHeadings, WithMapping

Class MinimumRevenueExport

Handles the export of minimum revenue data.

Table of Contents

Interfaces

FromCollection
WithHeadings
WithMapping

Properties

$id  : int
$period  : string

Methods

__construct()  : mixed
MinimumRevenueExport constructor.
collection()  : Collection
Retrieves the collection of data to be exported.
headings()  : array<string|int, mixed>
Defines the headings for the exported data.
map()  : array<string|int, mixed>
Maps the data for each row in the export.

Properties

Methods

__construct()

MinimumRevenueExport constructor.

public __construct(int $id, string $period) : mixed
Parameters
$id : int

The ID of the reseller subnet.

$period : string

The period for which the data is exported.

collection()

Retrieves the collection of data to be exported.

public collection() : Collection
Return values
Collection

The collection of reseller payments and summary data.

headings()

Defines the headings for the exported data.

public headings() : array<string|int, mixed>
Return values
array<string|int, mixed>

The array of column headings.

map()

Maps the data for each row in the export.

public map(object $payment) : array<string|int, mixed>
Parameters
$payment : object

The payment data object.

Return values
array<string|int, mixed>

The mapped data for the row.


        
On this page

Search results