Completed
Push — master ( 6366df...fbe022 )
by Kirill
23s queued 19s
created

AnnotatedClass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A method() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of Spiral Framework package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Attributes\Reader\Fixture;
13
14
use Spiral\Tests\Attributes\Reader\Fixture\Annotation\ClassAnnotation;
15
use Spiral\Tests\Attributes\Reader\Fixture\Annotation\ConstantAnnotation;
16
use Spiral\Tests\Attributes\Reader\Fixture\Annotation\MethodAnnotation;
17
use Spiral\Tests\Attributes\Reader\Fixture\Annotation\MethodParameterAnnotation;
18
use Spiral\Tests\Attributes\Reader\Fixture\Annotation\PropertyAnnotation;
19
20
/** @ClassAnnotation(field="value") */
21
#[ClassAnnotation(field: 'value')]
22
class AnnotatedClass
23
{
24
    /** @ConstantAnnotation(field="value") */
25
    #[ConstantAnnotation(field: 'value')]
26
    public const CONSTANT = 23;
27
28
    /** @PropertyAnnotation(field="value") */
29
    #[PropertyAnnotation(field: 'value')]
30
    public $property;
31
32
    /** @MethodAnnotation(field="value") */
33
    #[MethodAnnotation(field: 'value')]
34
    public function method(
35
        #[MethodParameterAnnotation(field: 'value')]
0 ignored issues
show
Unused Code introduced by
The parameter $parameter 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

35
        /** @scrutinizer ignore-unused */ #[MethodParameterAnnotation(field: 'value')]

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...
36
        string $parameter
37
    ): void
38
    {
39
    }
40
}
41