Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895724
ArcanistLandCommitSet.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Jan 19 2025, 21:56 (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114078
Default Alt Text
ArcanistLandCommitSet.php (1 KB)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment