note 125185 added to language.oop5.overloading
| From: | smcbride at msn dot com | Date: | Sat, 11 Jul 2020 20:56:21 +0000 |
| Subject: | note 125185 added to language.oop5.overloading | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214860@lists.php.net to get a copy of this message | ||
__call seems to be a good way to add a profiler to functions of a class without having to code for
every function. It would be nice to have a corresponding __return similar to __construct and
__destruct so that I could close the profiling stats.
With a __call, __return, and __FUNCTION__, you could easily keep timed statistics and counts to help
send back application telemetry from the deployments for tuning.
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 107.77.212.201)
----
Manual Page -- http://php.net/manual/en/language.oop5.overloading.php
Edit -- https://master.php.net/note/edit/125185
Del: integrated -- https://master.php.net/note/delete/125185/integrated
Del: useless -- https://master.php.net/note/delete/125185/useless
Del: bad code -- https://master.php.net/note/delete/125185/bad+code
Del: spam -- https://master.php.net/note/delete/125185/spam
Del: non-english -- https://master.php.net/note/delete/125185/non-english
Del: in docs -- https://master.php.net/note/delete/125185/in+docs
Del: other reasons-- https://master.php.net/note/delete/125185
Reject -- https://master.php.net/note/reject/125185
Search -- https://master.php.net/manage/user-notes.php