src/Gitonomy/Git/Diff/Diff.php
public function toArray()
    {
        return array(
            'rawDiff' => $this->rawDiff,
            'files' => array_map(
                function (File $file) {
                    return $file->toArray();
                },
                $this->files
            ),
        );
    }
public function toArray()
    {
        return array(
            'rawDiff' => $this->rawDiff,
            'files' => array_map(
                function (File $file) {
                    return $file->toArray();
                },
                $this->files
            ),
        );
    }
Export a diff as array.

@return array The array