You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
352 B
18 lines
352 B
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace App\Attributes;
|
|
|
|
use App\Enums\HttpMethod;
|
|
|
|
#[\Attribute(Attribute::TARGET_METHOD|Attribute::IS_REPEATABLE)]
|
|
class Get extends Route
|
|
{
|
|
public function __construct(
|
|
private string|array $path,
|
|
private ?string $name = null)
|
|
{
|
|
parent::__construct($path,$name,HttpMethod::Post);
|
|
}
|
|
} |