Answer the question
In order to leave comments, you need to log in
Is it possible in php to know that the called class method is the last one in the call chain?
Example:
class Example {
public turnLeft(){
//поворот налево
}
public turnRight(){
//поворот направо
}
}
$a = new Example();
$a->turnLeft()->turnLeft()->turnRight();
echo 'last method';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question