public function getResultForMultiStatus()
    {
        $r = [
            200 => [],
            404 => [],
        ];
        foreach ($this->result as $propertyName => $info) {
            if (!isset($r[$info[0]])) {
                $r[$info[0]] = [$propertyName => $info[1]];
            } else {
                $r[$info[0]][$propertyName] = $info[1];
            }
        }
        // Removing the 404's for multi-status requests.
        if (self::ALLPROPS === $this->requestType) {
            unset($r[404]);
        }

        return $r;
    }
public function getResultForMultiStatus()
    {
        $r = [
            200 => [],
            404 => [],
        ];
        foreach ($this->result as $propertyName => $info) {
            if (!isset($r[$info[0]])) {
                $r[$info[0]] = [$propertyName => $info[1]];
            } else {
                $r[$info[0]][$propertyName] = $info[1];
            }
        }
        // Removing the 404's for multi-status requests.
        if (self::ALLPROPS === $this->requestType) {
            unset($r[404]);
        }

        return $r;
    }
public function getResultForMultiStatus ( ) { $ r = [ 200 => [ ] , 404 => [ ] , ] ; foreach ( $ this -> result as $ propertyName => $ info ) { if ( ! isset ( $ r [ $ info [ 0 ] ] ) ) { $ r [ $ info [ 0 ] ] = [ $ propertyName => $ info [ 1 ] ] ; } else { $ r [ $ info [ 0 ] ] [ $ propertyName ] = $ info [ 1 ] ; } } // Removing the 404's for multi-status requests. if ( self :: ALLPROPS === $ this -> requestType ) { unset ( $ r [ 404 ] ) ; } return $ r ; }
Returns a result array that's often used in multistatus responses.

The array uses status codes as keys, and property names and value pairs
as the value of the top array.. such as :

[
200 => [ '{DAV:}displayname' => 'foo' ],
]

@return array
Returns a result array that s often used in multistatus responses .