public function getInterfaces() { return array_merge(...array_map(function (self $reflectionClass) { return $reflectionClass->getCurrentClassImplementedInterfacesIndexedByName(); }, $this->getInheritanceClassHierarchy())); }
/** * {@inheritDoc} */ public function getInterfaces() { $interfaces = $this->betterReflectionClass->getInterfaces(); $wrappedInterfaces = []; foreach ($interfaces as $key => $interface) { $wrappedInterfaces[$key] = new self($interface); } return $wrappedInterfaces; }