0
I have two methods that call the same method. In this method that was called (in this case, the validate()), I want to know what was the method that called it.
public function increase()
{
$this->validate();
}
public function decrease()
{
$this->validate();
}
private function validate()
{
echo 'Quem me chamou? increase() ou decrease()?';
}
Absolutely! That’s exactly what I needed, thank you!
– Gabriel Bitti