Copied!

Representation of a diff.

CloneableInstantiable
Methods
public __construct(array $files, $rawDiff)
 

Constructs a new diff for a given revision.

  • param array $files The files
  • param string $rawDiff The raw diff
public static fromArray(array $array)
 

Create a new instance of Diff from an array.

  • param array $array The array
  • return \Diff The new instance
public getFiles()
 

Get list of files modified in the diff's revision.

  • return \File[] An array of Diff\File objects
public getRawDiff()
 

Returns the raw diff.

  • return string The raw diff
public static parse( $rawDiff)
 
  • return \Diff
public setRepository(Gitonomy\Git\Repository $repository)
public toArray()
 

Export a diff as array.

  • return array The array
Properties
protected $files = NULL
 
  • var \File[]
protected $rawDiff = NULL
 
  • var string
Methods
public static fromArray(array $array)
 

Create a new instance of Diff from an array.

  • param array $array The array
  • return \Diff The new instance
public static parse( $rawDiff)
 
  • return \Diff
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration