1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/diffusion/data/DiffusionCommitHash.php
epriestley 23332241b2 Move commit hash querying to DiffusionLowLevelCommitQuery
Summary: Ref T4195. I need this for the Herald pre-commit rules, and it generally simplifies things.

Test Plan: Used `reparse.php` plus `var_dump()` to inspect refs in Git, Mercurial and SVN repos. They all looked correct and reparsed correctly.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4195

Differential Revision: https://secure.phabricator.com/D7804
2013-12-20 12:38:15 -08:00

26 lines
447 B
PHP

<?php
final class DiffusionCommitHash extends Phobject {
private $hashType;
private $hashValue;
public function setHashValue($hash_value) {
$this->hashValue = $hash_value;
return $this;
}
public function getHashValue() {
return $this->hashValue;
}
public function setHashType($hash_type) {
$this->hashType = $hash_type;
return $this;
}
public function getHashType() {
return $this->hashType;
}
}