36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Domains\Ticket\Services;
|
|
|
|
use App\Domains\Ticket\Models\Ticket;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class AdminAppTicketReportService
|
|
{
|
|
public function __construct(private readonly AdminAppTicketRowService $rowService) {}
|
|
|
|
/**
|
|
* @param Collection<int, Ticket> $tickets
|
|
* @return Collection<int, array<string, mixed>>
|
|
*/
|
|
public function rows(Collection $tickets): Collection
|
|
{
|
|
return $this->rowService->rows($tickets);
|
|
}
|
|
|
|
/**
|
|
* @param Collection<int, array<string, mixed>> $rows
|
|
* @param list<array<string, mixed>> $columns
|
|
* @return Collection<int, array<string, string>>
|
|
*/
|
|
public function displayRows(Collection $rows, array $columns, string $timeZone): Collection
|
|
{
|
|
return $this->rowService->displayRows($rows, $columns, $timeZone);
|
|
}
|
|
|
|
public function displayValue(mixed $value, string $type, string $timeZone): string
|
|
{
|
|
return $this->rowService->displayValue($value, $type, $timeZone);
|
|
}
|
|
}
|