Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116250294
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
Thu, Jun 5, 19:21
Size
788 B
Mime Type
text/x-php
Expires
Sat, Jun 7, 19:21 (2 d)
Engine
blob
Format
Raw Data
Handle
26581497
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