protected function getNamespacesFromClass($namespace)
    {
        $classStack = [$namespace];
        $classStack = array_merge($classStack, class_parents($namespace));
        $classStack = array_merge($classStack, class_implements($namespace));

        return $classStack;
    }
protected function getNamespacesFromClass($namespace)
    {
        $classStack = [$namespace];
        $classStack = array_merge($classStack, class_parents($namespace));
        $classStack = array_merge($classStack, class_implements($namespace));

        return $classStack;
    }
protected function getNamespacesFromClass ( $ namespace ) { $ classStack = [ $ namespace ] ; $ classStack = array_merge ( $ classStack , class_parents ( $ namespace ) ) ; $ classStack = array_merge ( $ classStack , class_implements ( $ namespace ) ) ; return $ classStack ; }
Get all possible classes given an object.

@param string $namespace Namespace

@return string[] Set of classes and interfaces
Get all possible classes given an object .