function heh(D1 $d)
 {
     return $d->foo();
     // calls the private function
 }
Exemple #2
0
 public function test()
 {
     D1::foo();
 }
Exemple #3
0
 function heh(D1 $d)
 {
     return $d->foo();
     // no __call, we have access
 }
Exemple #4
0
 public function test()
 {
     // This should call C1::foo, not D1::foo
     $obj = new D1();
     $obj->foo();
 }
 function heh(D1 $d)
 {
     return $d->foo();
     // calls /our/ private function
 }