Passed
Pull Request — master (#175)
by Alexander
02:36
created

HasMany   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Validator\Attribute;
6
7
use Attribute;
8
9
/**
10
 * Represents one to many relation.
11
 */
12
#[Attribute(Attribute::TARGET_PROPERTY)]
13
class HasMany
14
{
15
    public function __construct(string $relatedClassName, array $nestedRuleConfig = [], array $eachRuleConfig = [])
0 ignored issues
show
Unused Code introduced by
The parameter $relatedClassName is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function __construct(/** @scrutinizer ignore-unused */ string $relatedClassName, array $nestedRuleConfig = [], array $eachRuleConfig = [])

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $eachRuleConfig is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function __construct(string $relatedClassName, array $nestedRuleConfig = [], /** @scrutinizer ignore-unused */ array $eachRuleConfig = [])

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $nestedRuleConfig is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function __construct(string $relatedClassName, /** @scrutinizer ignore-unused */ array $nestedRuleConfig = [], array $eachRuleConfig = [])

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
    }
18
}
19