From e97e8e9d946306e42fbc2e923d3f03d03afe7e4f Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Wed, 20 Nov 2024 12:09:49 -0600 Subject: [PATCH] More nit picks. Co-authored-by: Gina Peter Banyard --- language/oop5/abstract.xml | 10 +++++----- language/oop5/property-hooks.xml | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/language/oop5/abstract.xml b/language/oop5/abstract.xml index 3b33d57f5633..d612d7a49a83 100644 --- a/language/oop5/abstract.xml +++ b/language/oop5/abstract.xml @@ -158,8 +158,8 @@ class C extends A // This would NOT satisfy the requirement, as it is not publicly readable. protected string $readable; - // This satisfies the requirement exactly, so is sufficient. It may only - // be written to, and only from protected scope. + // This satisfies the requirement exactly, so is sufficient. + // It may only be written to, and only from protected scope. protected string $writeable { set => $value; } @@ -173,7 +173,7 @@ class C extends A An abstract property on an abstract class may provide implementations for any hook, - but must have either get or set declared but not defined (as in the example above). + but must have either get or set declared but not defined (as in the example above). Abstract property example @@ -182,8 +182,8 @@ class C extends A foo = $value }; diff --git a/language/oop5/property-hooks.xml b/language/oop5/property-hooks.xml index 96ad1ef36e76..3a6eb21a3a98 100644 --- a/language/oop5/property-hooks.xml +++ b/language/oop5/property-hooks.xml @@ -39,7 +39,7 @@ Property hooks are incompatible with readonly properties. If there is a need to restrict access to a get or set operation in addition to altering its behavior, use - Asymmetric Property Visibility. + asymmetric property visibility. Basic Hook Syntax @@ -321,7 +321,8 @@ class Person { Final hooks - Hooks may also be declared final, in which case they may not be overridden. + Hooks may also be declared final, + in which case they may not be overridden. Final hooks