Changeset View
Changeset View
Standalone View
Standalone View
src/toolset/ArcanistToolset.php
<?php | <?php | ||||
abstract class ArcanistToolset extends Phobject { | abstract class ArcanistToolset extends Phobject { | ||||
final public function getToolsetKey() { | final public function getToolsetKey() { | ||||
return $this->getPhobjectClassConstant('TOOLSETKEY'); | return $this->getPhobjectClassConstant('TOOLSETKEY'); | ||||
} | } | ||||
final public static function newToolsetMap() { | final public static function newToolsetMap() { | ||||
$toolsets = id(new PhutilClassMapQuery()) | $toolsets = (new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->setUniqueMethod('getToolsetKey') | ->setUniqueMethod('getToolsetKey') | ||||
->execute(); | ->execute(); | ||||
return $toolsets; | return $toolsets; | ||||
} | } | ||||
public function getToolsetArguments() { | public function getToolsetArguments() { | ||||
return array(); | return array(); | ||||
} | } | ||||
} | } |
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