ReflectionClass::getInterfaces
(PHP 5)
ReflectionClass::getInterfaces — دریافت واسط
Description
public array ReflectionClass::getInterfaces
( void
)
دریافت واسط.
Parameters
This function has no parameters.
Return Values
واسطهای مرتبط array با کلیدهای نام واسط و مقدار آرایه به عنوان اشیا ReflectionClass.
Examples
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
)
)
There are no user contributed notes for this page.
