Copied!

Representation of a Blob commit.

CloneableInstantiable
Methods
public __construct(Gitonomy\Git\Repository $repository, $hash)
 
  • param \Repository $repository Repository where the blob is located
  • param string $hash Hash of the blob
public getContent()
 
  • throws \ProcessException Error occurred while getting content of blob
  • return string Content of the blob.
public getHash()
 
  • return string
public getMimetype()
 

Determine the mimetype of the blob.

  • return string A mimetype
public isBinary()
 

Determines if file is binary.

  • return bool
public isText()
 

Determines if file is text.

  • return bool
Properties
protected $content = NULL
 
  • var string
protected $hash = NULL
 
  • var string
protected $mimetype = NULL
 
  • var string
protected $repository = NULL
 
  • var \Repository
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration