GoLang ReflectionExtension::getDependencies

request it (293)
GoLang replacement for PHP's ReflectionExtension::getDependencies [edit | history]



Do you know a GoLang replacement for PHP's ReflectionExtension::getDependencies? Write it!

PHP ReflectionExtension::getDependencies

PHP original manual for ReflectionExtension::getDependencies [ show | php.net ]

ReflectionExtension::getDependencies

(PHP 5 >= 5.1.3, PHP 7)

ReflectionExtension::getDependenciesGets dependencies

Description

public array ReflectionExtension::getDependencies ( void )

Gets dependencies, by listing both required and conflicting dependencies.

Parameters

This function has no parameters.

Return Values

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

Examples

Example #1 ReflectionExtension::getDependencies() example

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

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

The above example will output something similar to:

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

See Also

  • ReflectionClass::getVersion()