BetterReflection\Reflection\ReflectionClass::getInterfaceNames PHP Method

getInterfaceNames() public method

Gets the interface names.
public getInterfaceNames ( ) : string[]
return string[] A numerical array with interface names as the values.
    public function getInterfaceNames()
    {
        return array_values(array_map(function (self $interface) {
            return $interface->getName();
        }, $this->getInterfaces()));
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getInterfaceNames()
 {
     return $this->betterReflectionClass->getInterfaceNames();
 }