Page MenuHomePhorge

CelerityResourceGraph.php
No OneTemporary

Size
684 B
Referenced Files
None
Subscribers
None

CelerityResourceGraph.php

<?php
final class CelerityResourceGraph extends AbstractDirectedGraph {
private $resourceGraph = array();
private $graphSet = false;
protected function loadEdges(array $nodes) {
if (!$this->graphSet) {
throw new PhutilInvalidStateException('setResourceGraph');
}
$graph = $this->getResourceGraph();
$edges = array();
foreach ($nodes as $node) {
$edges[$node] = idx($graph, $node, array());
}
return $edges;
}
final public function setResourceGraph(array $graph) {
$this->resourceGraph = $graph;
$this->graphSet = true;
return $this;
}
private function getResourceGraph() {
return $this->resourceGraph;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 27, 8:48 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
170427
Default Alt Text
CelerityResourceGraph.php (684 B)

Event Timeline