I am in a new quandary, and have been trying to work with it, I have gotten nothing but errors but I'm some what determined to learn how to do it, and after a bit of searching looks like it cannot be done the say that I want it to be.
In the class there are two or more functions(each can probably be called separably[sp]):
public function functionOne($some_var){
some other code to be run;
}
public function functionTwo($some_other_var){
some other code to be run after functionOne(), not called here;
}
From the caller (model):
$tClass = new TestClass();
$result = tClass->functionOne()->functionTwo();
echo $result;
Is this even possible from php? I know it works in frameworks like Laravel, which is where I learned about it. it would be nice... and so I am asking if I am doing it wrong? or ist it even possible, if it is where can i look for more as google had very very little information on the subject.