22 public function __construct(
24 private string $displayName
27 public function getUrl() :
string{
return $this->url; }
29 public function getDisplayName() :
string{
return $this->displayName; }
31 public static function read(ByteBufferReader $in) :
self{
32 $url = CommonTypes::getString($in);
33 $displayName = CommonTypes::getString($in);
34 return new self($displayName, $url);
37 public function write(ByteBufferWriter $out) :
void{
38 CommonTypes::putString($out, $this->url);
39 CommonTypes::putString($out, $this->displayName);