1 | <?php |
||
31 | class MaterialComponent extends ComponentAbstract implements MaterialCMPTIF |
||
32 | { |
||
33 | private $shaderObj; |
||
34 | |||
35 | /** |
||
36 | * Initialize Component |
||
37 | * |
||
38 | * {@inheritdoc} |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | 40 | public function initializeComponent(): bool |
|
47 | |||
48 | /** |
||
49 | * Return DOM attribute contents |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | 5 | public function getDomAttributeString(): string |
|
58 | |||
59 | /** |
||
60 | * Material Shader |
||
61 | * |
||
62 | * {@inheritdoc} |
||
63 | * |
||
64 | * @param null|string $shader |
||
65 | * @throws BadShaderCallException |
||
66 | * @return object|null |
||
67 | */ |
||
68 | 21 | public function shader(string $shader = null) |
|
83 | |||
84 | /** |
||
85 | * opacity |
||
86 | * |
||
87 | * {@inheritdoc} |
||
88 | * |
||
89 | * @param float $opacity |
||
90 | * @return MaterialCMPTIF |
||
91 | */ |
||
92 | 11 | public function opacity(float $opacity = 1.0): MaterialCMPTIF |
|
97 | |||
98 | /** |
||
99 | * transparent |
||
100 | * |
||
101 | * {@inheritdoc} |
||
102 | * |
||
103 | * @param bool $transparent |
||
104 | * @return MaterialCMPTIF |
||
105 | */ |
||
106 | 12 | public function transparent(bool $transparent = false): MaterialCMPTIF |
|
111 | |||
112 | /** |
||
113 | * depthTest |
||
114 | * |
||
115 | * {@inheritdoc} |
||
116 | * |
||
117 | * @param bool $depth_test |
||
118 | * @return MaterialCMPTIF |
||
119 | */ |
||
120 | 1 | public function depthTest(bool $depth_test = true): MaterialCMPTIF |
|
125 | |||
126 | /** |
||
127 | * side |
||
128 | * |
||
129 | * {@inheritdoc} |
||
130 | * |
||
131 | * @param string $side |
||
132 | * @return MaterialCMPTIF |
||
133 | */ |
||
134 | 6 | public function side(string $side = 'front'): MaterialCMPTIF |
|
139 | |||
140 | /** |
||
141 | * Do not apply fog to certain entities, we can disable fog for certain materials. |
||
142 | * |
||
143 | * @param string $side |
||
|
|||
144 | * @return MaterialCMPTIF |
||
145 | */ |
||
146 | 1 | public function fog(bool $fog = true): MaterialCMPTIF |
|
151 | |||
152 | /** |
||
153 | * Prepare Shader attributes |
||
154 | * |
||
155 | * @return void |
||
156 | */ |
||
157 | 5 | private function prepareShader() |
|
163 | } |
||
164 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.