/** * Instantiates object * * @param GitPHP_Project $project the project * @param string $hash tree hash * @param GitPHP_TreeLoadStrategy_Interface $strategy load strategy */ public function __construct($project, $hash, $strategy) { parent::__construct($project, $hash); if (!$strategy) { throw new Exception('Tree load strategy is required'); } $this->SetStrategy($strategy); }
/** * Instantiates object * * @param GitPHP_Project $project the project * @param string $hash object hash * @param GitPHP_BlobLoadStrategy_Interface $strategy load strategy */ public function __construct($project, $hash, GitPHP_BlobLoadStrategy_Interface $strategy) { parent::__construct($project, $hash); if (!$strategy) { throw new Exception('Blob load strategy is required'); } $this->SetStrategy($strategy); }
/** * __construct * * Instantiates object * * @access public * @param mixed $project the project * @param string $hash tree hash * @return mixed tree object * @throws Exception exception on invalid hash */ public function __construct($project, $hash) { parent::__construct($project, $hash); }