diff --git a/language/oop5/property-hooks.xml b/language/oop5/property-hooks.xml index c29bfcfb7605..05637fb9751a 100644 --- a/language/oop5/property-hooks.xml +++ b/language/oop5/property-hooks.xml @@ -25,8 +25,9 @@ - There are two hooks available on all properties: get and set. + There are two hooks available on non-static properties: get and set. They allow overriding the read and write behavior of a property, respectively. + Hooks are available for both typed and untyped properties. A property may be "backed" or "virtual". @@ -228,7 +229,7 @@ class Example For virtual properties, if a hook is omitted then that operation does - not exist and trying to use it wil produce an error. + not exist and trying to use it will produce an error. Virtual properties take up no memory space in an object. Virtual properties are suited for "derived" properties, such as those that are the combination of two other properties.