Passed
Pull Request — main (#27)
by Anatoly
41:39
created

Relationship::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
/**
4
 * It's free open-source software released under the MIT License.
5
 *
6
 * @author Anatoly Nekhay <[email protected]>
7
 * @copyright Copyright (c) 2021, Anatoly Nekhay
8
 * @license https://github.com/sunrise-php/hydrator/blob/master/LICENSE
9
 * @link https://github.com/sunrise-php/hydrator
10
 */
11
12
declare(strict_types=1);
13
14
namespace Sunrise\Hydrator\Annotation;
15
16
use Attribute;
17
18
/**
19
 * @Annotation
20
 * @Target({"PROPERTY"})
21
 * @NamedArgumentConstructor
22
 *
23
 * @Attributes({
24
 *     @Attribute("name", type="string", required=true),
25
 *     @Attribute("limit", type="integer", required=false),
26
 * })
27
 *
28
 * @since 3.0.0
29
 *
30
 * @deprecated 3.1.0 Use the {@see Subtype} annotation.
31
 *
32
 * @psalm-suppress InvalidExtendClass
33
 */
34
#[Attribute(Attribute::TARGET_PROPERTY)]
35
final class Relationship extends Subtype
36
{
37
}
38