From 0b37eb99efd60278f293bbe86806f5422e2c0866 Mon Sep 17 00:00:00 2001 From: Gordon Oheim Date: Sun, 28 Oct 2012 17:39:42 +0000 Subject: [PATCH] Added the names of the respective tokens to access properties (thank hakre for the suggestion) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328167 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/properties.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/language/oop5/properties.xml b/language/oop5/properties.xml index 2cb5846c2b..4734c517f9 100644 --- a/language/oop5/properties.xml +++ b/language/oop5/properties.xml @@ -40,13 +40,13 @@ as if it had been declared as public. - - Within class methods non-static properties may be accessed by using the form - $this->property (where property - is the name of the property). Static properties are accessed by using the - form self::$property. - See Static Keyword for more information - on the difference between static and non-static properties. + + Within class methods non-static properties may be accessed by using + -> (Object Operator): $this->property + (where property is the name of the property). + Static properties are accessed by using the :: (Double Colon): + self::$property. See Static Keyword + for more information on the difference between static and non-static properties. The pseudo-variable $this is available inside