7 abstract class CParent
implements IParent
{
8 protected function foo(): string {
13 abstract class Kid
extends CParent
{
14 protected function bar() {}
19 require extends CParent
;
21 protected function foo(): string {
27 return 'wrapped('.parent
::foo().')';
31 function takes_kt(Vector
<KidTrait
> $kt): void
{}