<?php

namespace App\Framework\Mcp\ValueObjects;

/**
 * Console command information
 */
final readonly class CommandInfo
{
    public function __construct(
        public string $name,
        public string $className,
        public string $method,
        public string $description,
        public array  $arguments = [],
        public array  $options = []
    ) {}

    public function toArray(): array
    {
        return [
            'name' => $this->name,
            'class_name' => $this->className,
            'method' => $this->method,
            'description' => $this->description,
            'arguments' => $this->arguments,
            'options' => $this->options,
        ];
    }
}
