Esempio n. 1
0
 /**
  * Instantiates object
  *
  * @param GitPHP_Project $project the project
  * @param string $hash object hash
  */
 public function __construct($project, $hash)
 {
     parent::__construct($project, $hash);
 }
Esempio n. 2
0
 /**
  * Instantiates object
  *
  * @param GitPHP_Project $project the project
  * @param string $hash object hash
  * @param GitPHP_CommitLoadStrategy_Interface $strategy load strategy
  */
 public function __construct($project, $hash, GitPHP_CommitLoadStrategy_Interface $strategy)
 {
     parent::__construct($project, $hash);
     if (!$strategy) {
         throw new Exception('Commit load strategy is required');
     }
     $this->SetStrategy($strategy);
 }