List of questions
Related questions
Question 28 - AD0-E722 discussion
An Adobe Commerce Architect runs the PHP Mess Detector from the command-line interface using the coding standard provided with Adobe Commerce. The following output appears:
The Architect looks at the class and notices that the constructor has 15 parameters. Five of these parameters are scalars configuring the behavior of MyService. The class also contains three constants referencing one other class.
How should the Architect fix the code so that it complies with the coding standard rule?
A.
Modify the code of MyService so that the number of different classes and interfaces referenced anywhere inside the class is fewer than 13.
B.
Consolidate the constants referencing other classes into a string representation.
C.
Introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of MyService.
Your answer:
0 comments
Sorted by
Leave a comment first