Hi there.
Basic question about Trait
.
Should a Trait only contain “generic” methods ?
By generic i mean, Trait can be used in any class ?
Or a Trait can be specific to a class or a class who use another Trait ?
Example : a Trait for Entity
, who use EntityTrait
, and my Trait “require” methods in EntityTrait.
Is it ok for a Trait to be dependent ?
Thanks