xxxx日本护士丰满hd|亚洲av日韩av无码av欧美av|精品国产污污网站在线看免费|日日摸日日碰夜夜爽久久|国产一区二区亚洲精品

ReflectionClass::getConstructor

(PHP 5, PHP 7, PHP 8)

ReflectionClass::getConstructor獲取類(lèi)的構造函數

說(shuō)明

public ReflectionClass::getConstructor(): ReflectionMethod

獲取已反射的類(lèi)的構造函數。

參數

此函數沒(méi)有參數。

返回值

一個(gè) ReflectionMethod 對象,反射了類(lèi)的構造函數,或者當類(lèi)不存在構造函數時(shí)返回 null。

范例

示例 #1 ReflectionClass::getConstructor() 的基本用法

<?php
$class 
= new ReflectionClass('ReflectionClass');
$constructor $class->getConstructor();
var_dump($constructor);
?>

以上例程會(huì )輸出:

object(ReflectionMethod)#2 (2) {
  ["name"]=>
  string(11) "__construct"
  ["class"]=>
  string(15) "ReflectionClass"
}

參見(jiàn)

xxxx日本护士丰满hd|亚洲av日韩av无码av欧美av|精品国产污污网站在线看免费|日日摸日日碰夜夜爽久久|国产一区二区亚洲精品