Representation of a Blob commit.

CloneableInstantiable
Methods
public __construct(Gitonomy\Git\Repository $repository, $hash)
 
    public getContent()
     

    Returns content of the blob.

    • throws ProcessException Error occurred while getting content of 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
     
    • var string
    protected $hash
     
    • var string
    protected $mimetype
     
    • var string
    protected $repository
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only