diff --git a/language/oop5/overloading.xml b/language/oop5/overloading.xml index 78a3e00d52..bb967ee9d7 100644 --- a/language/oop5/overloading.xml +++ b/language/oop5/overloading.xml @@ -1,12 +1,12 @@ - + Overloading Both method calls and member accesses can be overloaded via the __call, __get and __set methods. These methods will only be - triggered when your object or inherited object doesn't contain the + triggered when your object or inherited object doesn't contain the public member or method you're trying to access. All overloading methods must not be defined as static. @@ -43,9 +43,9 @@ Class members can be overloaded to run custom code defined in your class - by defining these specially named methods. The $name + by defining these specially named methods. The $name parameter used is the name of the variable that should be set or retrieved. - The __set() method's $value parameter specifies the + The __set() method's $value parameter specifies the value that the object should set the $name. @@ -171,12 +171,12 @@ object(Setter)#1 (2) { - The magic method __call() allows to capture invocation of non existing - methods. That way __call() can be used to implement user defined method - handling that depends on the name of the actual method being called. This - is for instance useful for proxy implementations. The arguments that were - passed in the function will be defined as an array in the - $arguments parameter. The value returned from the + The magic method __call() allows to capture invocation of non existing + methods. That way __call() can be used to implement user defined method + handling that depends on the name of the actual method being called. This + is for instance useful for proxy implementations. The arguments that were + passed in the function will be defined as an array in the + $arguments parameter. The value returned from the __call() method will be returned to the caller of the method. @@ -233,7 +233,7 @@ array(3) { - +