ReflectionExtension::getDependencies

(PHP 5 >= 5.1.3, PHP 7)

ReflectionExtension::getDependenciesGets dependencies

Descrierea

public ReflectionExtension::getDependencies ( void ) : array

Gets dependencies, by listing both required and conflicting dependencies.

Parametri

Această funcție nu are parametri.

Valorile întoarse

An associative array with dependencies as keys and either Required, Optional or Conflicts as the values.

Exemple

Example #1 ReflectionExtension::getDependencies() example

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

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

Exemplul de mai sus va afișa ceva similar cu:

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

A se vedea și

  • ReflectionClass::getVersion()