- var_dump: documentation ( source)
<?php
class FooBar {
private function __construct() {
}
public static function newBaz() {
return new Baz();
}
}
class Baz extends FooBar {}
var_dump(get_class(FooBar::newBaz()));
//var_dump(get_class(new Baz()));