I use this custom class code to handle different types of orders in Laravel. This question includes the code regarding Order Type A.
I want to know how to reuse the code