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

Serializer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
dl 0
loc 6
ccs 1
cts 1
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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("serializer", type="string")
18
 * })
19
 */
20
#[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor]
21
class Serializer
22
{
23 6
    public function __construct(
24
        public readonly string $serializer
25
    ) {
26 6
    }
27
}
28