1<?php 2 3/* 4 * This file is part of the Gitter library. 5 * 6 * (c) Klaus Silveira <klaussilveira@php.net> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace Gitter\Model; 13 14class GitObject extends AbstractModel 15{ 16 protected $hash; 17 18 public function isBlob() 19 { 20 return false; 21 } 22 23 public function isTag() 24 { 25 return false; 26 } 27 28 public function isCommit() 29 { 30 return false; 31 } 32 33 public function isTree() 34 { 35 return false; 36 } 37 38 public function getHash() 39 { 40 return $this->hash; 41 } 42 43 public function setHash($hash) 44 { 45 $this->hash = $hash; 46 47 return $this; 48 } 49} 50