Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / differential / herald / DifferentialReviewersAddSelfHeraldAction.php
bloba7e9991901d97e14c909d4c5a5f545bb93ce63e1
1 <?php
3 final class DifferentialReviewersAddSelfHeraldAction
4 extends DifferentialReviewersHeraldAction {
6 const ACTIONCONST = 'differential.reviewers.self.add';
8 public function getHeraldActionName() {
9 return pht('Add me as a reviewer');
12 public function supportsRuleType($rule_type) {
13 return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
16 public function applyEffect($object, HeraldEffect $effect) {
17 $phid = $effect->getRule()->getAuthorPHID();
18 return $this->applyReviewers(array($phid), $is_blocking = false);
21 public function getHeraldActionStandardType() {
22 return self::STANDARD_NONE;
25 public function renderActionDescription($value) {
26 return pht('Add rule author as reviewer.');