A trait is a set of methods and properties reusable in several classes without inheritance, through the use keyword. It allows sharing code between unrelated classes. Name conflicts are resolved with insteadof and as.
Example
trait Horodate {
public ?string $creeLe = null;
}
class Article { use Horodate; }