/** * Instantiates object * * @param GitPHP_Project $project the project * @param string $hash object hash */ public function __construct($project, $hash) { parent::__construct($project, $hash); }
/** * 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); }