for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Boot\Attribute;
abstract class AbstractMethod
{
/**
* @param non-empty-string|null $alias
non-empty-string|null
0
*/
public function __construct(
* Alias for the method.
* If not provided, the return type of the method will be used as the alias.
public readonly ?string $alias = null,
* Add aliases from the return type of the method even if the method has an alias.
public readonly bool $aliasesFromReturnType = false,
) {}
}