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

search for in the

ReflectionClass::isInternal> <ReflectionClass::isInstantiable
[edit] Last updated: Fri, 17 May 2013

view this page in

ReflectionClass::isInterface

(PHP 5)

ReflectionClass::isInterfaceComprueba una la clase es una interfaz

Descripción

public bool ReflectionClass::isInterface ( void )

Comprueba si una clase es una interfaz.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Ejemplos

Ejemplo #1 Uso básico de ReflectionClass::isInterface()

<?php
interface AlgunaInterfaz {
    public function 
interfaceMethod();
}

$class = new ReflectionClass('AlgunaInterfaz');
var_dump($class->isInterface());
?>

El resultado del ejemplo sería:

bool(true)

Ver también



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

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