@@ -198,26 +198,31 @@ private function processUnit(ProcessedClassType|ProcessedTraitType $unit, Report
198198 }
199199
200200 foreach ($ unit ->methods as $ method ) {
201- $ methodObject = $ unitObject ->addMethod ($ method -> methodName );
202- $ methodObject -> setSignature ( $ method ->signature );
203- $ methodObject -> setLines (( string ) $ method -> startLine , ( string ) $ method ->endLine );
204- $ methodObject -> setCrap ( $ method ->crap );
205- $ methodObject -> setTotals (
201+ $ unitObject ->addMethod (
202+ $ method ->methodName ,
203+ $ method ->signature ,
204+ ( string ) $ method ->startLine ,
205+ ( string ) $ method -> endLine ,
206206 (string ) $ method ->executableLines ,
207207 (string ) $ method ->executedLines ,
208208 (string ) $ method ->coverage ,
209+ $ method ->crap ,
209210 );
210211 }
211212 }
212213
213214 private function processFunction (ProcessedFunctionType $ function , Report $ report ): void
214215 {
215- $ functionObject = $ report ->functionObject ($ function ->functionName );
216-
217- $ functionObject ->setSignature ($ function ->signature );
218- $ functionObject ->setLines ((string ) $ function ->startLine );
219- $ functionObject ->setCrap ($ function ->crap );
220- $ functionObject ->setTotals ((string ) $ function ->executableLines , (string ) $ function ->executedLines , (string ) $ function ->coverage );
216+ $ report ->functionObject (
217+ $ function ->functionName ,
218+ $ function ->signature ,
219+ (string ) $ function ->startLine ,
220+ null ,
221+ (string ) $ function ->executableLines ,
222+ (string ) $ function ->executedLines ,
223+ (string ) $ function ->coverage ,
224+ $ function ->crap ,
225+ );
221226 }
222227
223228 /**
0 commit comments