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

HasMany::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 2
rs 10
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