<?php trait Foo { public function __construct() { echo 'Foo'; parent::__construct(); } } class Bar { public function __construct() { echo 'Bar'; } } class Baz extends Bar { use Foo; } new Baz;
You have javascript disabled. You will not be able to edit any code.