Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/diffusion/protocol/DiffusionGitWireProtocolRef.php
12242 views
1
<?php
2
3
final class DiffusionGitWireProtocolRef
4
extends Phobject {
5
6
private $name;
7
private $hash;
8
private $isShallow;
9
10
public function setName($name) {
11
$this->name = $name;
12
return $this;
13
}
14
15
public function getName() {
16
return $this->name;
17
}
18
19
public function setHash($hash) {
20
$this->hash = $hash;
21
return $this;
22
}
23
24
public function getHash() {
25
return $this->hash;
26
}
27
28
public function setIsShallow($is_shallow) {
29
$this->isShallow = $is_shallow;
30
return $this;
31
}
32
33
public function getIsShallow() {
34
return $this->isShallow;
35
}
36
37
public function newSortVector() {
38
return id(new PhutilSortVector())
39
->addInt((int)$this->getIsShallow())
40
->addString((string)$this->getName());
41
}
42
43
}
44
45