CloneableInstantiable
Methods
public __construct( $oldName, $newName, $oldMode, $newMode, $oldIndex, $newIndex, $isBinary)
 

Instanciates a new File object.

public addChange(Gitonomy\Git\Diff\FileChange $change)
public static fromArray(array $array)
public getAdditions()
 
  • return int Number of added lines
public getAnchor()
public getChanges()
public getDeletions()
 
  • return int Number of deleted lines
public getName()
public getNewBlob()
public getNewIndex()
public getNewMode()
public getNewName()
public getOldBlob()
public getOldIndex()
public getOldMode()
public getOldName()
public getRepository()
public isBinary()
public isChangeMode()
 

Indicates if the file mode has changed.

public isCreation()
 

Indicates if this diff file is a creation.

  • return bool
public isDelete()
 

Indicates if this diff file is a deletion.

  • return bool
public isDeletion()
 

Indicates if this diff file is a deletion.

  • return bool
public isModification()
 

Indicates if this diff file is a modification.

  • return bool
public isRename()
 

Indicates if it's a rename.

A rename can only occurs if it's a modification (not a creation or a deletion).

  • return bool
public setRepository(Gitonomy\Git\Repository $repository)
public toArray()
Properties
protected $changes
 
  • var array An array of FileChange objects
protected $isBinary
 
  • var bool
protected $newIndex
 
  • var string
protected $newMode
 
  • var string
protected $newName
 
  • var string
protected $oldIndex
 
  • var string
protected $oldMode
 
  • var string
protected $oldName
 
  • var string
protected $repository
 
  • var Repository
Methods
public static fromArray(array $array)
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only