Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / auth / revoker / PhabricatorAuthRevoker.php
blob9bf44b05bcee8907dbfbbc191ea138831dc17616
1 <?php
3 abstract class PhabricatorAuthRevoker
4 extends Phobject {
6 private $viewer;
8 abstract public function revokeAllCredentials();
9 abstract public function revokeCredentialsFrom($object);
11 abstract public function getRevokerName();
12 abstract public function getRevokerDescription();
14 public function getRevokerNextSteps() {
15 return null;
18 public function setViewer(PhabricatorUser $viewer) {
19 $this->viewer = $viewer;
20 return $this;
23 public function getViewer() {
24 return $this->viewer;
27 final public function getRevokerKey() {
28 return $this->getPhobjectClassConstant('REVOKERKEY');
31 final public static function getAllRevokers() {
32 return id(new PhutilClassMapQuery())
33 ->setAncestorClass(__CLASS__)
34 ->setUniqueMethod('getRevokerKey')
35 ->execute();