Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115393024
DifferentialReviewer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 31, 15:05
Size
788 B
Mime Type
text/x-php
Expires
Mon, Jun 2, 15:05 (2 d)
Engine
blob
Format
Raw Data
Handle
26486404
Attached To
rPH Phabricator
DifferentialReviewer.php
View Options
<?php
final
class
DifferentialReviewer
{
protected
$reviewerPHID
;
protected
$status
;
protected
$diffID
;
public
function
__construct
(
$reviewer_phid
,
$status
,
$diff_id
=
null
)
{
$this
->
reviewerPHID
=
$reviewer_phid
;
$this
->
setStatus
(
$status
,
$diff_id
);
}
public
function
getReviewerPHID
()
{
return
$this
->
reviewerPHID
;
}
public
function
getStatus
()
{
return
$this
->
status
;
}
public
function
getDiffID
()
{
return
$this
->
diffID
;
}
public
function
setStatus
(
$status
,
$diff_id
=
null
)
{
if
(
$status
==
DifferentialReviewerStatus
::
STATUS_REJECTED
&&
$diff_id
===
null
)
{
throw
new
Exception
(
'STATUS_REJECTED must have a diff_id set'
);
}
$this
->
status
=
$status
;
$this
->
diffID
=
$diff_id
;
return
$this
;
}
}
Event Timeline
Log In to Comment