fork download
  1. <?php
  2.  
  3. class Email {
  4. public function where($param = []) {
  5. echo __METHOD__;
  6. }
  7. }
  8.  
  9. class User {
  10. static public function take($param) {
  11. return new $param;
  12. }
  13. }
  14.  
  15. USER::take('email')->where(['id' => 1]);
Success #stdin #stdout 0.02s 82880KB
stdin
Standard input is empty
stdout
Email::where