« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 130 for ReflectionClass (0.002 sec.)
ReflectionObject クラス | PHP 8.3 10504
ReflectionObject クラス (PHP 5, PHP 7, PHP 8) はじめに ReflectionObject クラスは オブジェクトについての情報を報告します。 クラス概要 class ReflectionObject extends ReflectionClass { /* 継承した定数 */ public const int ReflectionClass::IS_IM ... PLICIT_ABSTRACT ; public const int ReflectionClass::IS_EXPLICIT_ABSTRACT ; public const int ReflectionClass::IS_FINAL ; public const int ReflectionClass::IS_READONLY ; publi ... c const int ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE ; public const int ReflectionClass::SKIP_DESTRUCTOR ; /* 継承したプロパティ */ public st ... ring $ name ; /* メソッド */ public function __construct ( object $object ) /* 継承したメソッド */ public static function ReflectionClass::export ( mixed $argument , bool $return = false ): string public function ReflectionClass::getAttributes ( ? string $name ...
https://man.mtool.work/php/8.3/class.reflectionobject.html
ReflectionEnum クラス | PHP 8.3 10444
ReflectionEnum クラス (PHP 8 >= 8.1.0) はじめに ReflectionEnum クラスは、 列挙型に関する情報を報告します。 クラス概要 class ReflectionEnum extends ReflectionClass { /* 継承した定数 */ public const int ReflectionClass::IS_IMPLICIT_ABSTRACT ; ... public const int ReflectionClass::IS_EXPLICIT_ABSTRACT ; public const int ReflectionClass::IS_FINAL ; public const int ReflectionClass::IS_READONLY ; publi ... c const int ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE ; public const int ReflectionClass::SKIP_DESTRUCTOR ; /* 継承したプロパティ */ public st ... ic function hasCase ( string $name ): bool public function isBacked (): bool /* 継承したメソッド */ public static function ReflectionClass::export ( mixed $argument , bool $return = false ): string public function ReflectionClass::getAttributes ( ? string $name ...
https://man.mtool.work/php/8.3/class.reflectionenum.html
ReflectionClass クラス | PHP 8.3 10213
ReflectionClass クラス (PHP 5, PHP 7, PHP 8) はじめに ReflectionClass クラスは クラスについての情報を報告します。 クラス概要 class ReflectionClass implements Reflector { /* 定数 */ public const int IS_IMPLICIT_ABSTRACT ; public const int IS ... (): int public function getName (): string public function getNamespaceName (): string public function getParentClass (): ReflectionClass | false public function getProperties ( ? int $filter = null ): array public function getProperty ( string $name ): Reflec ... tionProperty public function getReflectionConstant ( string $name ): ReflectionClassConstant | false public function getReflectionConstants ( ? int $filter = null ): array public function getShortName (): st ... hasMethod ( string $name ): bool public function hasProperty ( string $name ): bool public function implementsInterface ( ReflectionClass | string $interface ): bool public function initializeLazyObject ( object $object ): object public function inNamespace () ...
https://man.mtool.work/php/8.3/class.reflectionclass.html
リフレクション | PHP 8.3 8972
リフレクション はじめに PHP には完全なリフレクション API が付属しており、 クラス、インターフェイス、関数、メソッド、そして拡張モジュールについて 型やプロパティを実行時に調べることができます。 さらに、このリフレクション API は関数、クラス、メ ... Reflection — Reflection クラス Reflection::export — エクスポートする Reflection::getModifierNames — 修飾子の名前を取得する ReflectionClass — ReflectionClass クラス ReflectionClass::__construct — ReflectionClass を作成する ReflectionClass::export — クラスをエクス ... ポートする ReflectionClass::getAttributes — アトリビュートを取得する ReflectionClass::getConstant — 定義されている定数を取得する ReflectionClass::get ... Constants — 定数を取得する ReflectionClass::getConstructor — クラスのコンストラクタを取得する ReflectionClass::getDefaultProperties — デフォルトプロパティを取得する ...
https://man.mtool.work/php/8.3/book.reflection.html
ReflectionClass::getInterfaces — インターフェイスを取得する | PHP 8.3 7939
ReflectionClass::getInterfaces (PHP 5, PHP 7, PHP 8) ReflectionClass::getInterfaces — インターフェイスを取得する 説明 public function ReflectionClass::getInterfaces (): array インターフェイスを取得します。 パラメータ この関数にはパラメータは ... ありません。 戻り値 インターフェイスの連想配列を返します。インターフェイス名が連想配列のキー、対応する値が ReflectionClass オブジェクトとなります。 例 例1 ReflectionClass::getInterfaces() の例 <?php interface Foo { } interface Bar { } class Baz ... implements Foo , Bar { } $rc1 = new ReflectionClass ( "Baz" ); print_r ( $rc1 -> getInterfaces ()); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [Foo] => Reflec ... tionClass Object ( [name] => Foo ) [Bar] => ReflectionClass Object ( [name] => Bar ) ) 参考 ReflectionClass::getInterfaceNames() - インターフェイスの名前を取得する ...
https://man.mtool.work/php/8.3/reflectionclass.getinterfaces.html
ReflectionClass::getParentClass — 親クラスを取得する | PHP 8.3 7878
ReflectionClass::getParentClass (PHP 5, PHP 7, PHP 8) ReflectionClass::getParentClass — 親クラスを取得する 説明 public function ReflectionClass::getParentClass (): ReflectionClass | false 親クラスを取得します。 パラメータ この関数にはパラメ ... ータはありません。 戻り値 ReflectionClass を返します。 親が存在しない場合は、 false を返します。 参考 ReflectionClass::__construct() - ReflectionClass を作成する ...
https://man.mtool.work/php/8.3/reflectionclass.getparentclass.html
ReflectionClass::getProperty — クラスのプロパティを表す ReflectionProperty | PH... 7793
ReflectionClass::getProperty (PHP 5, PHP 7, PHP 8) ReflectionClass::getProperty — クラスのプロパティを表す ReflectionProperty を取得する 説明 public function ReflectionClass::getProperty ( string $name ): ReflectionProperty クラスのプロパテ ... ィを表す ReflectionProperty を取得します。 パラメータ name プロパティの名前。 戻り値 ReflectionProperty を返します。 例 例1 ReflectionClass::getProperty() の基本的な使用例 <?php $class = new ReflectionClass ( 'ReflectionClass' ); $property = $class -> getPropert ... ; ?> 上の例の出力は以下となります。 object(ReflectionProperty)#2 (2) { ["name"]=> string(4) "name" ["class"]=> string(15) "ReflectionClass" } 参考 ReflectionClass::getProperties() - プロパティを取得する ...
https://man.mtool.work/php/8.3/reflectionclass.getproperty.html
ReflectionClass::__toString — ReflectionClass オブジェクトの文字列表現を返す | ... 7793
ReflectionClass::__toString (PHP 5, PHP 7, PHP 8) ReflectionClass::__toString — ReflectionClass オブジェクトの文字列表現を返す 説明 public function ReflectionClass::__toString (): string ReflectionClass オブジェクトの文字列表現を返します。 ... パラメータ この関数にはパラメータはありません。 戻り値 この ReflectionClass インスタンスの文字列表現を返します。 例 例1 ReflectionClass::__toString() の例 <?php $reflectionClass = new ReflectionClas ... s ( 'Exception' ); echo $reflectionClass -> __toString (); ?> 上の例の出力は以下となります。 Class [ <internal:Core> class Exception ] { - Constants [0] { } - Stat ... internal:Core> final public method getTraceAsString ] { } Method [ <internal:Core> public method __toString ] { } } } 参考 ReflectionClass::export() - クラスをエクスポートする __toString() 他のマニュアルの関連ページ Docker サンプルアプリケーション Linux JM core ...
https://man.mtool.work/php/8.3/reflectionclass.tostring.html
ReflectionClass::getMethod — クラスメソッドの ReflectionMethod | PHP 8.3 7672
ReflectionClass::getMethod (PHP 5, PHP 7, PHP 8) ReflectionClass::getMethod — クラスメソッドの ReflectionMethod を取得する 説明 public function ReflectionClass::getMethod ( string $name ): ReflectionMethod クラスメソッドに関する ReflectionM ... 前。 戻り値 ReflectionMethod を返します。 エラー / 例外 メソッドが存在しない場合に ReflectionException が発生します。 例 例1 ReflectionClass::getMethod() の基本的な使用例 <?php $class = new ReflectionClass ( 'ReflectionClass' ); $method = $class -> getMethod ( 'g ... > 上の例の出力は以下となります。 object(ReflectionMethod)#2 (2) { ["name"]=> string(9) "getMethod" ["class"]=> string(15) "ReflectionClass" } 参考 ReflectionClass::getMethods() - メソッドの配列を取得する ...
https://man.mtool.work/php/8.3/reflectionclass.getmethod.html
ReflectionClass::getConstructor — クラスのコンストラクタを取得する | PHP 8.3 7550
ReflectionClass::getConstructor (PHP 5, PHP 7, PHP 8) ReflectionClass::getConstructor — クラスのコンストラクタを取得する 説明 public function ReflectionClass::getConstructor (): ? ReflectionMethod クラスのコンストラクタを取得します。 パラメ ... のコンストラクタを表す ReflectionMethod オブジェクトを返します。 クラスのコンストラクタがない場合は null を返します。 例 例1 ReflectionClass::getConstructor() の基本的な使用例 <?php $class = new ReflectionClass ( 'ReflectionClass' ); $constructor = $class -> getC ... 上の例の出力は以下となります。 object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(15) "ReflectionClass" } 参考 ReflectionClass::getName() - クラスの名前を取得する 他のマニュアルの関連ページ Python copyreg ...
https://man.mtool.work/php/8.3/reflectionclass.getconstructor.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT