2019-04-16 18:08:39 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class DiffusionGitWireProtocolRef
|
|
|
|
extends Phobject {
|
|
|
|
|
|
|
|
private $name;
|
|
|
|
private $hash;
|
2019-06-14 01:28:30 +02:00
|
|
|
private $isShallow;
|
2019-04-16 18:08:39 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2019-06-14 01:28:30 +02:00
|
|
|
public function setIsShallow($is_shallow) {
|
|
|
|
$this->isShallow = $is_shallow;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIsShallow() {
|
|
|
|
return $this->isShallow;
|
|
|
|
}
|
|
|
|
|
2019-04-16 18:08:39 +02:00
|
|
|
public function newSortVector() {
|
|
|
|
return id(new PhutilSortVector())
|
2019-06-14 01:28:30 +02:00
|
|
|
->addInt((int)$this->getIsShallow())
|
|
|
|
->addString((string)$this->getName());
|
2019-04-16 18:08:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|