31 lines
842 B
PHP
31 lines
842 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/*
|
|
// MODULE_CONTRACT: Defines the data structure for pagination metadata.
|
|
// RESPONSIBILITY: To hold and type-safely represent pagination information from paginated API responses.
|
|
// INPUTS: Raw JSON object from the API response.
|
|
// OUTPUTS: A structured object containing pagination details.
|
|
// LINKS: NominalAccounts/Payouts/PayOffsListResponseData.php
|
|
*/
|
|
|
|
namespace Apoloz\AlfaBank\Data\Shared;
|
|
|
|
use Spatie\LaravelData\Data;
|
|
|
|
/**
|
|
* DTO for pagination metadata.
|
|
*
|
|
* @property-read int $limit Maximum items per page
|
|
* @property-read int $offset Number of items skipped
|
|
* @property-read int $totalCount Total items across all pages
|
|
*/
|
|
class PaginationData extends Data
|
|
{
|
|
public function __construct(
|
|
public int $limit,
|
|
public int $offset,
|
|
public int $totalCount,
|
|
) {}
|
|
}
|