Implemented economic-related classes, endpoints, and routes to support fetching invoice totals, sent invoices, and department data. These changes enhance functionality by exposing APIs for economic statistics and integrating them into the statistics module.
36 lines
546 B
PHP
36 lines
546 B
PHP
<?php
|
|
|
|
namespace classes;
|
|
|
|
use interfaces\statistics_i;
|
|
use statistics\bookings_s;
|
|
use statistics\economic_s;
|
|
use statistics\orders_s;
|
|
|
|
class statistics implements statistics_i
|
|
{
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function bookings(): bookings_s
|
|
{
|
|
return new bookings_s();
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function orders(): orders_s
|
|
{
|
|
return new orders_s();
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function economic(): economic_s
|
|
{
|
|
return new economic_s();
|
|
}
|
|
} |