<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ``` final Componere\Method { /* Constructor */ public __construct ( \Closure $closure ) -實例化 /* Methods */ public setPrivate ( void ) : Method - 修改方法為Private public setProtected ( void ) : Method - 修改方法為Protected public setStatic ( void ) : Method - 修改方法為靜態方法 public getReflector ( void ) : \ReflectionMethod -返回ReflectionMethod類實例 具體參看反射章節 } ``` ``` /* * 動態定義一個類 */ $DefClass = new \Componere\Definition( 'Teacher'); // 用Method類擴展類的方法(默認public) $DefMethod = new Componere\Method(function( $param = null ) { echo '今天去了'.$param; } ); //將方法設置為Private //$DefMethod->setPrivate(); //將方法設置為Protected //$DefMethod->setProtected(); //將方法設置為靜態方法 $DefMethod->setStatic(); $R=$DefMethod->getReflector(); var_dump($R); $DefClass->addMethod( 'go', $DefMethod ); // 注冊類 $DefClass->register(); $people=new Teacher(); $people->go('上河街'); Teacher::go('上河街'); ``` 結果: ``` object(ReflectionMethod)#3 (2) { ["name"]=> string(8) "function" ["class"]=> string(0) "" } 今天去了上河街 今天去了上河街 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看