- var_dump: documentation ( source)
<?php
abstract class Foo
{
abstract public function __construct(int $j);
}
class Bar extends Foo
{
public function __construct(int $j)
{
}
}
$ref = new \ReflectionClass(\Bar::class);
var_dump($ref->getMethod('__construct')->getPrototype()->getDeclaringClass()->getName());