downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ReflectionClass::getMethod> <ReflectionClass::getInterfaceNames
[edit] Last updated: Fri, 24 May 2013

view this page in

ReflectionClass::getInterfaces

(PHP 5)

ReflectionClass::getInterfacesObtiene las interfaces

Descripción

public array ReflectionClass::getInterfaces ( void )

Devuelve las interfaces.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

array asociativo de interfaces, donde los nombres se usan como claves, y los objetos ReflectionClass como valor.

Ejemplos

Ejemplo #1 Ejemplo de ReflectionClass::getInterfaces()

<?php
interface Foo { }

interface 
Bar { }

class 
Baz implements FooBar { }

$rc1 = new ReflectionClass("Baz");

print_r($rc1->getInterfaces());
?>

El resultado del ejemplo sería algo similar a:

Array
(
    [Foo] => ReflectionClass Object
        (
            [name] => Foo
        )

    [Bar] => ReflectionClass Object
        (
            [name] => Bar
        )

)

Ver también



add a note add a note User Contributed Notes ReflectionClass::getInterfaces - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites