Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22415812
ArcanistLandCommitSet.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistLandCommitSet.php
View Options
<?php
final
class
ArcanistLandCommitSet
extends
Phobject
{
private
$revisionRef
;
private
$commits
;
private
$isPick
;
public
function
setRevisionRef
(
ArcanistRevisionRef
$revision_ref
)
{
$this
->
revisionRef
=
$revision_ref
;
return
$this
;
}
public
function
getRevisionRef
()
{
return
$this
->
revisionRef
;
}
public
function
setCommits
(
array
$commits
)
{
assert_instances_of
(
$commits
,
'ArcanistLandCommit'
);
$this
->
commits
=
$commits
;
$revision_phid
=
$this
->
getRevisionRef
()->
getPHID
();
foreach
(
$commits
as
$commit
)
{
$revision_ref
=
$commit
->
getExplicitRevisionRef
();
if
(
$revision_ref
)
{
if
(
$revision_ref
->
getPHID
()
===
$revision_phid
)
{
continue
;
}
}
$commit
->
setIsImplicitCommit
(
true
);
}
return
$this
;
}
public
function
getCommits
()
{
return
$this
->
commits
;
}
public
function
hasImplicitCommits
()
{
foreach
(
$this
->
commits
as
$commit
)
{
if
(
$commit
->
getIsImplicitCommit
())
{
return
true
;
}
}
return
false
;
}
public
function
hasDirectSymbols
()
{
foreach
(
$this
->
commits
as
$commit
)
{
if
(
$commit
->
getDirectSymbols
())
{
return
true
;
}
}
return
false
;
}
public
function
setIsPick
(
$is_pick
)
{
$this
->
isPick
=
$is_pick
;
return
$this
;
}
public
function
getIsPick
()
{
return
$this
->
isPick
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 28, 01:29 (49 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1217100
Default Alt Text
ArcanistLandCommitSet.php (1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline