/** * @param \Donquixote\HastyReflectionCommon\Reflection\ClassLike\ClassLikeReflectionInterface $classLikeReflection * * @return array|\Donquixote\HastyReflectionCommon\Reflection\ClassLike\ClassLikeReflectionInterface[] */ static function classLikeGetFirstLevelInterfaces(ClassLikeReflectionInterface $classLikeReflection) { if ($classLikeReflection->isInterface()) { return array($classLikeReflection->getName() => $classLikeReflection); } $interfaces = $classLikeReflection->getOwnInterfaces(); if (NULL !== ($parentClass = $classLikeReflection->getParentClass())) { $interfaces += self::classLikeGetFirstLevelInterfaces($parentClass); } return $interfaces; }
/** * @return \Donquixote\HastyReflectionCommon\NamespaceUseContext\NamespaceUseContextInterface */ function getNamespaceUseContext() { return $this->declaringClass->getNamespaceUseContext(); }