[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/system/exception/ -> PhabricatorSystemActionRateLimitException.php (source)

   1  <?php
   2  
   3  final class PhabricatorSystemActionRateLimitException extends Exception {
   4  
   5    private $action;
   6    private $score;
   7  
   8    public function __construct(PhabricatorSystemAction $action, $score) {
   9      $this->action = $action;
  10      $this->score = $score;
  11      parent::__construct($action->getLimitExplanation());
  12    }
  13  
  14    public function getRateExplanation() {
  15      return $this->action->getRateExplanation($this->score);
  16    }
  17  
  18  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1