« ReflectionExtension::getConstants
ReflectionExtension::getFunctions »

ReflectionExtension::getDependencies

(PHP 5 >= 5.1.3, PHP 7, PHP 8)

ReflectionExtension::getDependencies — 依存性を取得する

説明

public function ReflectionExtension::getDependencies(): array

必須の依存性、衝突する依存性の両方を取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

依存する拡張モジュールをキー、そして Required、Optional あるいは Conflicts のいずれかを値とする連想配列を返します。

例

例1 ReflectionExtension::getDependencies() の例

<?php
$dom = new ReflectionExtension('dom');

print_r($dom->getDependencies());
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [libxml] => Required
    [domxml] => Conflicts
)

参考

  • ReflectionClass::getVersion()

関連キーワード:
ReflectionExtension   依存性   getDependencies   Required   Conflicts   getConstants   getFunctions   必須   衝突   両方   依存   拡張   キー   Optional   連想   print   libxml   domxml   参考   ReflectionClass   getVersion
関連する関数・ページ:
reflectionextension.getconstants   reflectionextension.construct   class.reflectionextension   reflectionextension.getversion   reflectionextension.tostring   reflectionextension.getname