<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\DI\Metadata;

final class DefinitionMetadata
{
    private array $items = [];

    public function set(string $key, mixed $value): void { $this->items[$key] = $value; }
    public function get(string $key, mixed $default = null): mixed { return $this->items[$key] ?? $default; }
    public function all(): array { return $this->items; }
}
