From d10697d077a9ce44de803af0b129ec8843e5fd81 Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Wed, 20 Nov 2024 11:03:36 -0600 Subject: [PATCH] Reorder paragraphs into examples. --- language/oop5/property-hooks.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/language/oop5/property-hooks.xml b/language/oop5/property-hooks.xml index 648d19bef2e8..96ad1ef36e76 100644 --- a/language/oop5/property-hooks.xml +++ b/language/oop5/property-hooks.xml @@ -106,6 +106,9 @@ print $example->foo; Property get expression + + This example is equivalent to the previous. + - - This example is equivalent to the previous. - If the set hook's parameter type is the same as the property type (which is typical), it may be omitted. In that case, the value to set is automatically given the name $value. Property set defaults + + This example is equivalent to the previous. + - - This example is equivalent to the previous. - If the set hook is only setting a modified version of the passed in value, then it may also be simplified to an arrow expression. The value the expression evaluates to will be set on the backing