@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final 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}