Copied!

Reference set associated to a repository.

CloneableInstantiableIterable
Methods
public __construct( $repository)
 

Constructor.

  • param \Repository $repository The repository
public count()
 
  • return int
  • see \Countable
  • attribute ReturnTypeWillChange
public createBranch( $name, $commitHash)
 
  • return \Reference
public createTag( $name, $commitHash)
 
  • return \Reference
public delete( $fullname)
 
  • return void
public get( $fullname)
 

Returns a reference, by name.

  • param string $fullname Fullname of the reference (refs/heads/master, for example).
  • return \Reference A reference object.
public getAll()
 
  • return array An associative array with fullname as key (refs/heads/master, refs/tags/0.1)
public getBranch( $name)
 
  • return \Branch
public getBranches()
 
  • return \Branch[] All branches.
public getFirstBranch()
 
  • return \Branch
public getIterator()
 
  • see \IteratorAggregate
  • attribute ReturnTypeWillChange
public getLocalBranches()
 
  • return \Branch[] All local branches.
public getRemoteBranch( $name)
 
  • return \Branch
public getRemoteBranches()
 
  • return \Branch[] All remote branches.
public getTag( $name)
 
  • return \Tag
public getTags()
 
  • return \Tag[] All tags.
public has( $fullname)
 
  • return bool
public hasBranch( $name)
public hasBranches()
 
  • return bool
public hasRemoteBranch( $name)
public hasTag( $name)
public resolve( $hash)
 
  • return \Reference[] An array of references
public resolveBranches( $hash)
 
  • return \Branch[] An array of Branch objects
public resolveTags( $hash)
 
  • return \Tag[] An array of Tag objects
public update(Gitonomy\Git\Reference $reference)
 
  • return \Reference
Properties
protected $branches = NULL
 

List with all branches.

  • var \Branch[]
protected $initialized = false
 

A boolean indicating if the bag is already initialized.

  • var bool
protected $references = NULL
 

Associative array of fullname references.

  • var array
protected $repository = NULL
 

Repository object.

  • var \Repository
protected $tags = NULL
 

List with all tags.

  • var \Tag[]
Methods
protected initialize()
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration