I'm having different classes. Now in one class, I'm having the following method/function.
class Currency extends CurrencyClassAbstract {
public function __construct(
}
public function convertMethod($price) {
//need to know here which class is calling this method/function
}
}
Now, there are different classes like product, tax, cartclass, orderclass all these classes are calling convertMethod
function of Currency class.
I need to write code in convertMethod
of Currency
from where (which class) it is calling?
Is there any possible way to do this?