<?php trait Foo { public $property; } class Bar { use Foo; public $anotherProperty; } foreach ((new ReflectionClass(Bar::class))->getProperties() as $property) { var_dump($property->name); }
You have javascript disabled. You will not be able to edit any code.