Passed
Push — main ( 7f530d...7aae9b )
by Thierry
05:54
created

AttrAnnotated::attrDbVar()   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 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace Jaxon\Annotations\Tests\Attr\Ajax;
4
5
use Jaxon\Annotations\Tests\Attr\FuncComponent;
6
use Jaxon\Annotations\Tests\Service\ColorService;
0 ignored issues
show
Bug introduced by
The type Jaxon\Annotations\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...
7
8
class AttrAnnotated extends FuncComponent
9
{
10
    /**
11
     * @var ColorService
12
     */
13
    protected $colorService;
14
15
    /**
16
     * @var FontService
0 ignored issues
show
Bug introduced by
The type Jaxon\Annotations\Tests\Attr\Ajax\FontService 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
    protected $fontService;
19
20
    /**
21
     * @var \Jaxon\Annotations\Tests\Service\TextService
0 ignored issues
show
Bug introduced by
The type Jaxon\Annotations\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...
22
     */
23
    protected $textService;
24
25
    /**
26
     * @di ColorService
27
     */
28
    protected $colorService1;
29
30
    /**
31
     * @di FontService
32
     */
33
    protected $fontService1;
34
35
    /**
36
     * @di \Jaxon\Annotations\Tests\Service\TextService
37
     */
38
    protected $textService1;
39
40
    /**
41
     * @di
42
     * @var ColorService
43
     */
44
    protected $colorService2;
45
46
    /**
47
     * @di
48
     * @var FontService
49
     */
50
    protected $fontService2;
51
52
    /**
53
     * @di
54
     * @var \Jaxon\Annotations\Tests\Service\TextService
55
     */
56
    protected $textService2;
57
58
    /**
59
     * @di('class' => 'ColorService')
60
     */
61
    protected $colorService3;
62
63
    /**
64
     * @di('class' => 'FontService')
65
     */
66
    protected $fontService3;
67
68
    /**
69
     * @di('class' => '\Jaxon\Annotations\Tests\Service\TextService')
70
     */
71
    protected $textService3;
72
73
    /**
74
     * @di $fontService FontService
75
     */
76
    protected $errorTwoParams;
77
78
    /**
79
     * @di('attr' => 'fontService')
80
     */
81
    protected $errorDiAttr;
82
83
    /**
84
     * @di $fontService
85
     */
86
    protected $errorDiDbAttr;
87
88
    /**
89
     * @di
90
     * @di FontService
91
     */
92
    protected $errorTwoDi;
93
94
    /**
95
     * @di('attr' => 'colorService')
96
     * @di('attr' => 'fontService')
97
     * @di('attr' => 'textService')
98
     */
99
    public function attrVar()
100
    {
101
    }
102
103
    /**
104
     * @di $colorService
105
     * @di $fontService
106
     * @di $textService
107
     */
108
    public function attrDbVar()
109
    {
110
    }
111
112
    public function attrDi()
113
    {
114
    }
115
116
    /**
117
     * @di ColorService
118
     */
119
    public function errorDiClass()
120
    {
121
    }
122
123
    /**
124
     * @di colorService ColorService
125
     */
126
    public function errorDiNoVar()
127
    {
128
    }
129
130
    /**
131
     * @di $colorService $ColorService
132
     */
133
    public function errorDiTwoVars()
134
    {
135
    }
136
}
137