Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
AbstractDiagnosticsDataProvider
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
5/** @license For full copyright and license information, please see the LICENSE.md file. */
6
7namespace App\Modules\About\Application\DataSource;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11use App\Core\Engine\Domain\DataSource\DynamicDataProviderInterface;
12use App\Core\Engine\Domain\Model\ModuleMetadata;
13use App\Core\Engine\Domain\Model\PermissionContext;
14use App\Core\Grid\GridRequest;
15use App\Core\Grid\GridResult;
16use App\Modules\About\Application\Service\SystemDiagnosticsServiceInterface;
17
18/**
19 * Base Abstract Diagnostics Data Provider.
20 *
21 * Provides shared filtering, sorting, and pagination for array-based in-memory DataGrid sources.
22 *
23 * @package App\Modules\About\Application\DataSource
24 */
25abstract readonly class AbstractDiagnosticsDataProvider extends AbstractInMemoryDataProvider
26{
27    /**
28     * AbstractDiagnosticsDataProvider constructor.
29     *
30     * @param SystemDiagnosticsServiceInterface $diagnosticsService Diagnostics service.
31     */
32    public function __construct(
33        protected SystemDiagnosticsServiceInterface $diagnosticsService
34    ) {
35    }
36}