mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
33 lines
506 B
PHP
33 lines
506 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionGitWireProtocolRef
|
||
|
extends Phobject {
|
||
|
|
||
|
private $name;
|
||
|
private $hash;
|
||
|
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
|
||
|
public function setHash($hash) {
|
||
|
$this->hash = $hash;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getHash() {
|
||
|
return $this->hash;
|
||
|
}
|
||
|
|
||
|
public function newSortVector() {
|
||
|
return id(new PhutilSortVector())
|
||
|
->addString($this->getName());
|
||
|
}
|
||
|
|
||
|
}
|