Page MenuHomePhorge

PhabricatorPackagesVersionPHIDType.php
No OneTemporary

PhabricatorPackagesVersionPHIDType.php

<?php
final class PhabricatorPackagesVersionPHIDType
extends PhabricatorPHIDType {
const TYPECONST = 'PVER';
public function getTypeName() {
return pht('Version');
}
public function newObject() {
return new PhabricatorPackagesVersion();
}
public function getPHIDTypeApplicationClass() {
return PhabricatorPackagesApplication::class;
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhabricatorPackagesVersionQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$version = $objects[$phid];
$name = $version->getName();
$uri = $version->getURI();
$handle
->setName($name)
->setURI($uri);
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 18:16 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127348
Default Alt Text
PhabricatorPackagesVersionPHIDType.php (887 B)

Event Timeline