Copied!
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)
 
  • return \File
public getAdditions()
 
  • return int Number of added lines
public getAnchor()
public getChanges()
 
  • return \FileChange[]
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 = NULL
 
  • var \FileChange[] An array of FileChange objects
protected $isBinary = NULL
 
  • var bool
protected $newIndex = NULL
 
  • var string
protected $newMode = NULL
 
  • var string
protected $newName = NULL
 
  • var string
protected $oldIndex = NULL
 
  • var string
protected $oldMode = NULL
 
  • var string
protected $oldName = NULL
 
  • var string
protected $repository = NULL
 
  • var \Repository
Methods
public static fromArray(array $array)
 
  • return \File
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration