Is it possible to chain static methods together using a static class? Say I wanted to do something like this:
$value = TestClass::toValue(5)::add(3)::subtrac
Fully functional example of method chaining with static attributes:
send(['error' => $msg_error], $http_code); } }
Example of use:
Response::getInstance()->code(400)->sendError("Lacks id in request");