for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace pjpawel\LightApi\Route;
use Attribute;
/**
* Class is to be used as attribute to expose methods as routes to kernel
*/
#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD)]
class AsRoute
{
public string $path;
* @var string[]
public array $methods;
//public array $requirements;
public function __construct(string $path, array $methods = [])
$this->path = $path;
$this->methods = $methods;
}