PropertyAttribute::errorDiClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Jaxon\Attributes\Tests\Attr\Ajax;
5
6
use Jaxon\Attributes\Attribute\Inject;
7
use Jaxon\Attributes\Tests\Attr\FuncComponent;
8
use Jaxon\Attributes\Tests\Service\ColorService;
0 ignored issues
show
Bug introduced by
The type Jaxon\Attributes\Tests\Service\ColorService was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
class PropertyAttribute extends FuncComponent
11
{
12
    protected ColorService $colorService;
13
14
    protected FontService $fontService;
15
16
    protected \Jaxon\Attributes\Tests\Service\TextService $textService;
0 ignored issues
show
Bug introduced by
The type Jaxon\Attributes\Tests\Service\TextService was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
18
    #[Inject(ColorService::class)]
19
    protected $colorService1;
20
21
    #[Inject(FontService::class)]
22
    protected $fontService1;
23
24
    #[Inject('\Jaxon\Attributes\Tests\Service\TextService')]
25
    protected $textService1;
26
27
    #[Inject]
28
    protected ColorService $colorService2;
29
30
    #[Inject]
31
    protected FontService $fontService2;
32
33
    #[Inject]
34
    protected \Jaxon\Attributes\Tests\Service\TextService $textService2;
35
36
    #[Inject(type: ColorService::class)]
37
    protected $colorService3;
38
39
    #[Inject(type: FontService::class)]
40
    protected $fontService3;
41
42
    #[Inject(type: '\Jaxon\Attributes\Tests\Service\TextService')]
43
    protected $textService3;
44
45
    #[Inject(FontService::class, 'fontService')]
46
    protected $errorTwoParams;
47
48
    #[Inject(attr: 'fontService')]
49
    protected $errorDiAttr;
50
51
    #[Inject]
52
    #[Inject(FontService::class)]
53
    protected $errorTwoDi;
54
55
    #[Inject(attr: 'colorService')]
56
    #[Inject(attr: 'fontService')]
57
    #[Inject(attr: 'textService')]
58
    public function attrVar()
59
    {
60
    }
61
62
    #[Inject(attr: 'colorService')]
63
    #[Inject(attr: 'fontService')]
64
    #[Inject(attr: 'textService')]
65
    public function attrDbVar()
66
    {
67
    }
68
69
    public function attrDi()
70
    {
71
    }
72
73
    #[Inject(type: ColorService::class)]
74
    public function errorDiClass()
75
    {
76
    }
77
}
78