Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
LibraryPage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Cosray\Assets;
6
7final readonly class LibraryPage
8{
9    /**
10     * @param list<Asset> $assets
11     * @param array<string, int> $counts per filter kind, see Library::page()
12     */
13    public function __construct(
14        public array $assets,
15        public int $page,
16        public bool $more,
17        /** Full match count across all pages; 0 when paging past the end. */
18        public int $total,
19        public array $counts,
20    ) {}
21}