Representation of a diff.

CloneableInstantiable
Methods
public __construct(array $files, $rawDiff)
 
Constructs a new diff for a given revision.

    public static fromArray(array $array)
     
    Create a new instance of Diff from an array.

    public getFiles()
     
    Get list of files modified in the diff's revision.

    • return array An array of Diff\File objects
    public getRawDiff()
     
    Returns the raw diff.

    • return string The raw diff
    public getRevisions()
     


    • return array
    public static parse( $rawDiff)
    public setRepository(Gitonomy\Git\Repository $repository)
    public toArray()
     
    Export a diff as array.

    • return array The array
    Properties
    protected $files
     


    • var array
    protected $rawDiff
     


    • var string
    Methods
    public static fromArray(array $array)
     
    Create a new instance of Diff from an array.

    public static parse( $rawDiff)
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only