PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/reflection/tests/bug47254.php

http://github.com/facebook/hiphop-php
PHP | 17 lines | 15 code | 2 blank | 0 comment | 0 complexity | b33ca509eca2ff41852286e94cc12a36 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh
  2. class A
  3. {
  4. protected function a() {}
  5. }
  6. class B extends A
  7. {
  8. public function b() {}
  9. }
  10. <<__EntryPoint>> function main(): void {
  11. $B = new B();
  12. $R = new ReflectionObject($B);
  13. $m = $R->getMethods();
  14. print_r($m);
  15. }