protected function getPropStats(): array
    {
        $result = [];
        $failed = false;
        
        foreach ($this->proppatch->getOperations() as $operation) {
            $tmp = $operation->getResult();
            
            if (is_integer($tmp)) {
                if (empty($result[$tmp])) {
                    $result[$tmp] = [];
                }
                
                $result[$tmp][] = $operation;
            } elseif ($tmp instanceof HttpException) {
                $tmp = $tmp->getCode();
                
                if (empty($result[$tmp])) {
                    $result[$tmp] = [];
                }
                
                $result[$tmp][] = $operation;
            } else {
                $tmp = WebDav::CODE_CONFLICT;
                
                if (empty($result[$tmp])) {
                    $result[$tmp];
                }
                
                $result[$tmp][] = $operation;
            }
            
            if ($tmp != WebDav::CODE_OK) {
                $failed = true;
            }
        }
        
        if ($failed && !empty($result[WebDav::CODE_OK])) {
            if (empty($result[WebDav::CODE_FAILED_DEPENDENCY])) {
                $result[WebDav::CODE_FAILED_DEPENDENCY] = [];
            }
            
            foreach ($result[WebDav::CODE_OK] as $operation) {
                $result[WebDav::CODE_FAILED_DEPENDENCY][] = $operation;
            }
            
            unset($result[WebDav::CODE_OK]);
        }
        
        ksort($result, SORT_NUMERIC);
        
        return $result;
    }