Passed
Push — master ( 738663...b5cb7b )
by butschster
25:04 queued 15:39
created

JobHandler::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
dl 0
loc 3
ccs 1
cts 1
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Queue\Attribute;
6
7
use Doctrine\Common\Annotations\Annotation\Attribute;
8
use Doctrine\Common\Annotations\Annotation\Attributes;
9
use Doctrine\Common\Annotations\Annotation\Target;
10
use Spiral\Attributes\NamedArgumentConstructor;
11
12
/**
13
 * @Annotation
14
 * @NamedArgumentConstructor
15
 * @Target({"CLASS"})
16
 * @Attributes({
17
 *     @Attribute("type", type="string")
18
 * })
19
 */
20
#[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor]
21
class JobHandler
22
{
23 6
    public function __construct(
24
        public readonly string $type
25
    ) {
26 6
    }
27
}
28