<?php
abstract class myparent {
public function foo($bar) {
// do stuff
}
}
class mychild extends myparent {
public $val;
private function bar(myparent &$baz) {
// do stuff
}
public function __construct($val) {
$this->val = $val;
}
}
$child = new mychild('hello world');
$child->foo('test');
$reflection = new reflectionClass('myparent');
echo $reflection->isInstantiable() ? 'yes' : 'no';