<?php

declare(strict_types=1);

namespace App\Framework\Console;

use Attribute;

#[Attribute(Attribute::TARGET_METHOD)]
final readonly class ConsoleCommand
{
    public function __construct(
        public string $name,
        public string $description = '',
        public array $aliases = [],
        public bool $hidden = false
    ) {
    }

    /**
     * Get command name
     */
    public function getName(): string
    {
        return $this->name;
    }

    /**
     * Get command description
     */
    public function getDescription(): string
    {
        return $this->description;
    }

    /**
     * Get command aliases
     */
    public function getAliases(): array
    {
        return $this->aliases;
    }

    /**
     * Check if command is hidden
     */
    public function isHidden(): bool
    {
        return $this->hidden;
    }
}
