BetterReflection\Reflection\ReflectionObject::getInterfaces PHP 메소드

getInterfaces() 공개 메소드

public getInterfaces ( )
    public function getInterfaces()
    {
        return $this->reflectionClass->getInterfaces();
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getInterfaces()
 {
     $interfaces = $this->betterReflectionObject->getInterfaces();
     $wrappedInterfaces = [];
     foreach ($interfaces as $key => $interface) {
         $wrappedInterfaces[$key] = new ReflectionClass($interface);
     }
     return $wrappedInterfaces;
 }