Changeset View
Changeset View
Standalone View
Standalone View
src/ref/simple/ArcanistSimpleSymbolRefInspector.php
<?php | <?php | ||||
final class ArcanistSimpleSymbolRefInspector | final class ArcanistSimpleSymbolRefInspector | ||||
extends ArcanistRefInspector { | extends ArcanistRefInspector { | ||||
private $templateRef; | private $templateRef; | ||||
protected function newInspectors() { | protected function newInspectors() { | ||||
$refs = id(new PhutilClassMapQuery()) | $refs = (new PhutilClassMapQuery()) | ||||
->setAncestorClass('ArcanistSimpleSymbolRef') | ->setAncestorClass('ArcanistSimpleSymbolRef') | ||||
->execute(); | ->execute(); | ||||
$inspectors = array(); | $inspectors = array(); | ||||
foreach ($refs as $ref) { | foreach ($refs as $ref) { | ||||
$inspectors[] = id(new self()) | $inspectors[] = (new self()) | ||||
->setTemplateRef($ref); | ->setTemplateRef($ref); | ||||
} | } | ||||
return $inspectors; | return $inspectors; | ||||
} | } | ||||
public function setTemplateRef(ArcanistSimpleSymbolRef $template_ref) { | public function setTemplateRef(ArcanistSimpleSymbolRef $template_ref) { | ||||
$this->templateRef = $template_ref; | $this->templateRef = $template_ref; | ||||
Show All 24 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0