Added tests for DTOConverter

This commit is contained in:
Jan Böhmer 2023-07-15 18:18:35 +02:00
parent de82249d8d
commit 8ea92ef330
11 changed files with 429 additions and 11 deletions

View file

@ -25,24 +25,24 @@ namespace App\Services\InfoProviderSystem;
use App\Services\InfoProviderSystem\Providers\InfoProviderInterface;
class ProviderRegistry
/**
* This class keeps track of all registered info providers and allows to find them by their key
*/
final class ProviderRegistry
{
/**
* @var InfoProviderInterface[] The info providers index by their keys
* @psalm-var array
* @phpstan-var array<string, InfoProviderInterface>
*/
private array $providers_by_name = [];
/**
* @var InfoProviderInterface[] The enabled providers indexed by their keys
* @psalm-var array
*/
private array $providers_active = [];
/**
* @var InfoProviderInterface[] The disabled providers indexed by their keys
* @psalm-var array
*/
private array $providers_disabled = [];