/** * @return \Donquixote\HastyReflectionCommon\Reflection\ClassLike\ClassLikeReflectionInterface[] */ protected function buildAllInterfacesWithoutSelf() { $interfaces = $this->ownInterfaces->getOwnInterfaces(); foreach ($interfaces as $interface) { $interfaces += $interface->getAllInterfaces(FALSE); } if ($parentClass = $this->extends->getParentClass()) { $interfaces += $parentClass->getAllInterfaces(FALSE); } return $interfaces; }
/** * Gets the interfaces directly/explicitly implemented or extended by this * class or interface. * * This does not include interfaces implemented by parent classes, or extended * by explicitly implemented interfaces. * * If the class itself is an interface, it will NOT be part of the returned * array. * * Some implementations with no access to a parser might simply return ALL * interfaces, but without the class itself, if it is an interface. * * @return \Donquixote\HastyReflectionCommon\Reflection\ClassLike\ClassLikeReflectionInterface[] */ function getOwnInterfaces() { return $this->ownInterfaces->getOwnInterfaces(); }