<?php
namespace Foo;
class Bar { private function baz(){}}
$class = new ReflectionClass('Foo\Bar');
$method = $class->getMethod('baz');
echo $method->getName();
Fatal error: Uncaught Error: Class "Foo\ReflectionClass" not found in /in/HoSZ1:7
Stack trace:
#0 {main}
thrown in /in/HoSZ1 on line 7
Process exited with code 255.
Fatal error: Uncaught Error: Class 'Foo\ReflectionClass' not found in /in/HoSZ1:7
Stack trace:
#0 {main}
thrown in /in/HoSZ1 on line 7
Process exited with code 255.