for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Queue\Attribute;
use Doctrine\Common\Annotations\Annotation\Attribute;
use Doctrine\Common\Annotations\Annotation\Attributes;
use Doctrine\Common\Annotations\Annotation\Target;
use Spiral\Attributes\NamedArgumentConstructor;
/**
* @Annotation
* @NamedArgumentConstructor
* @Target({"CLASS"})
* @Attributes({
* @Attribute("type", type="string")
* })
*/
#[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor]
class JobHandler
{
public function __construct(
public readonly string $type
) {
}