Changeset View
Changeset View
Standalone View
Standalone View
src/lint/renderer/ArcanistLintRenderer.php
<?php | <?php | ||||
abstract class ArcanistLintRenderer extends Phobject { | abstract class ArcanistLintRenderer extends Phobject { | ||||
private $output; | private $output; | ||||
final public function getRendererKey() { | final public function getRendererKey() { | ||||
return $this->getPhobjectClassConstant('RENDERERKEY'); | return $this->getPhobjectClassConstant('RENDERERKEY'); | ||||
} | } | ||||
final public static function getAllRenderers() { | final public static function getAllRenderers() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->setUniqueMethod('getRendererKey') | ->setUniqueMethod('getRendererKey') | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
final public function setOutputPath($path) { | final public function setOutputPath($path) { | ||||
$this->output = $path; | $this->output = $path; | ||||
return $this; | return $this; | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 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