(PHP 5)
ReflectionClass::getInterfaces — دریافت واسط
دریافت واسط.
This function has no parameters.
واسطهای مرتبط array با کلیدهای نام واسط و مقدار آرایه به عنوان اشیا ReflectionClass.
Example #1 مثال ReflectionClass::getInterfaces()
<?php
interface Foo { }
interface Bar { }
class Baz implements Foo, Bar { }
$rc1 = new ReflectionClass("Baz");
print_r($rc1->getInterfaces());
?>
The above example will output something similar to:
Array Array ( [Foo] => ReflectionClass Object ( [name] => Foo ) [Bar] => ReflectionClass Object ( [name] => Bar ) )