ReflectionClass::getInterfaces
(PHP 5)
ReflectionClass::getInterfaces — Arayüzleri döndürür
Açıklama
public array ReflectionClass::getInterfaces
( void
)
Arayüzleri döndürür.
Değiştirgeler
Bu işlevin değiştirgesi yoktur.
Dönen Değerler
Anahtarların arayüz isimlerini, değerlerin ise ReflectionClass nesnelerini içerdiği bir dizi döner.
Örnekler
Örnek 1 - ReflectionClass::getInterfaces() örneği
<?php
interface Foo { }
interface Bar { }
class Baz implements Foo, Bar { }
$rc1 = new ReflectionClass("Baz");
print_r($rc1->getInterfaces());
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
Array
Array
(
[Foo] => ReflectionClass Object
(
[name] => Foo
)
[Bar] => ReflectionClass Object
(
[name] => Bar
)
)
There are no user contributed notes for this page.
