Page MenuHomePhorge

ArcanistRepositoryRemoteQuery.php
No OneTemporary

ArcanistRepositoryRemoteQuery.php

<?php
abstract class ArcanistRepositoryRemoteQuery
extends ArcanistRepositoryQuery {
private $names;
final public function withNames(array $names) {
$this->names = $names;
return $this;
}
final public function execute() {
$api = $this->getRepositoryAPI();
$refs = $this->newRemoteRefs();
foreach ($refs as $ref) {
$ref->setRepositoryAPI($api);
}
$names = $this->names;
if ($names !== null) {
$names = array_fuse($names);
foreach ($refs as $key => $ref) {
if (!isset($names[$ref->getRemoteName()])) {
unset($refs[$key]);
}
}
}
return $refs;
}
abstract protected function newRemoteRefs();
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Mar 24, 05:48 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114534
Default Alt Text
ArcanistRepositoryRemoteQuery.php (702 B)

Event Timeline