payoff list
This commit is contained in:
30
src/Data/Shared/PaginationData.php
Normal file
30
src/Data/Shared/PaginationData.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user