diff --git a/language/oop5/traits.xml b/language/oop5/traits.xml index 48b04d4c28..bffc8a8599 100644 --- a/language/oop5/traits.xml +++ b/language/oop5/traits.xml @@ -406,6 +406,57 @@ class Example { Example::doSomething(); ?> +]]> + + + + + + Properties + + Traits can also define properties. + + + Defining Properties + +x; +?> +]]> + + + + If a trait defines a property then a class can not define a property with + the same name, otherwise an error is issued. It is an + E_STRICT if the class definition is compatible (same + visibility and initial value) or fatal error otherwise. + + + Conflict Resolution + + ]]>