refactor: susun semula struktur folder — Laravel source ke src/

This commit is contained in:
Saufi
2026-05-19 15:58:35 +08:00
parent f052251b94
commit bf53c71b45
10806 changed files with 1385379 additions and 121 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Laravel\Mcp\Server\Annotations;
use Attribute;
use InvalidArgumentException;
#[Attribute(Attribute::TARGET_CLASS)]
class Priority extends Annotation
{
public function __construct(public float $value)
{
if ($value < 0.0 || $value > 1.0) {
throw new InvalidArgumentException(
"Priority must be between 0.0 and 1.0, got {$value}"
);
}
}
public function key(): string
{
return 'priority';
}
}