2013-07-15 04:18:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class DifferentialReviewer {
|
|
|
|
|
|
|
|
protected $reviewerPHID;
|
|
|
|
protected $status;
|
|
|
|
protected $diffID;
|
|
|
|
|
|
|
|
public function __construct($reviewer_phid, $status, $diff_id = null) {
|
|
|
|
$this->reviewerPHID = $reviewer_phid;
|
2013-10-05 03:31:41 +02:00
|
|
|
$this->status = $status;
|
|
|
|
$this->diffID = $diff_id;
|
2013-07-15 04:18:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getReviewerPHID() {
|
|
|
|
return $this->reviewerPHID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getStatus() {
|
|
|
|
return $this->status;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDiffID() {
|
|
|
|
return $this->diffID;
|
|
|
|
}
|
|
|
|
|
2013-10-05 16:54:42 +02:00
|
|
|
public function isUser() {
|
|
|
|
$user_type = PhabricatorPeoplePHIDTypeUser::TYPECONST;
|
|
|
|
return (phid_get_type($this->getReviewerPHID()) == $user_type);
|
|
|
|
}
|
|
|
|
|
2013-07-15 04:18:55 +02:00
|
|
|
}
|