Use final on traits in PHP
问题 What i want is the ability to make "final traits" with the behaviour as described below. I realise this is not possible with traits(or is it? that would make me so happy), but I'm just trying to convey what I want to do. So, i want to have a trait that is trait Content { public final function getPostContent(){ /*...*/ } public final function setPostContent($content){ /*...*/ } } What I want is Marking the functions in the traits as final making sure that if a class uses this trait, the trait