1
I wonder how I can do that:
Class::methodA()->methodB()->methodC()...;
I have a View class (MVC) in which I step parameters to create variables (assign). Currently it looks like this:
View::assign('var1', 'Variável 1');
View::assign('var2', 'Variável 2');
View::render('layout');
I’d like to keep it that way:
View::render('layout')->assign('var1', 'Variável 1')->assign('var2', 'Variável 2')
What is Chaining of Methods?
– rray