Gittern\Entity\GitObject\Tree::getSha PHP Method

getSha() public method

Author: Magnus Nordlander
public getSha ( )
    public function getSha()
    {
        return $this->sha;
    }

Usage Example

Esempio n. 1
0
 protected function writeTree(Tree $tree, Writer $writer)
 {
     $sha = $tree->getSha();
     if (strlen($sha) != 40) {
         throw new NotPersistedException("Tree referred to by commit is not persisted yet.");
     }
     $writer->writeString8("tree ");
     $writer->writeString8($sha);
     $writer->writeString8("\n");
 }