Representation of a Blob commit.

Cloneable Instantiable
public __construct ( Gitonomy\Git\Repository $repository , $hash )
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
protected $content
  • var string
protected $hash
  • var string
protected $mimetype
  • var string
protected $repository
© 2022 Bruce Wells
Search Namespaces \ Classes