📜  php 钩子函数 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:02.735000             🧑  作者: Mango

代码示例1
class Vehicle {
       function __construct() {
              $this->hookFunction();
       }

       function hookFunction() {
              //
       }
 }

 class Car extends Vehicle {

 } 

 Class Toyota extends Car {

 }

 new Toyota(); // will you hook function
 // this exclude static call to member functions, or other inline functions.