Grand Project Overview

Minion minion-plugindependencyresolutionresult-c5fdd429edd8

Status: Unknown

Workstream: None

Short Task: PluginDependencyResolutionResult

Result summary: <?php declare(strict_types=1); namespace TheGrandProject\Framework\Plugins; final class PluginDependencyResolutionResult { /** * @param array<int, PluginRegistryEntry> $orderedPlugins * @param array<int, PluginDependencyResolutionError> $errors */ public function __construct( private readonly array $orderedPlugins, private readonly array $errors, ) { } /** * @return array<int, PluginRegistryEntry> */ public function orderedPlug

<?php

declare(strict_types=1);

namespace TheGrandProject\Framework\Plugins;

final class PluginDependencyResolutionResult
{
    /**
     * @param array<int, PluginRegistryEntry> $orderedPlugins
     * @param array<int, PluginDependencyResolutionError> $errors
     */
    public function __construct(
        private readonly array $orderedPlugins,
        private readonly array $errors,
    ) {
    }

    /**
     * @return array<int, PluginRegistryEntry>
     */
    public function orderedPlugins(): array
    {
        return $this->orderedPlugins;
    }

    /**
     * @return array<int, PluginDependencyResolutionError>
     */
    public function errors(): array
    {
        return $this->errors;
    }

    public function isValid(): bool
    {
        return $this->errors === [];
    }
}

Warnings: None