Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7187898
ArcanistBranchRef.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistBranchRef.php
View Options
<?php
final
class
ArcanistBranchRef
extends
ArcanistRef
{
const
HARDPOINT_COMMITREF
=
'commitRef'
;
private
$branchName
;
private
$refName
;
private
$isCurrentBranch
;
public
function
getRefDisplayName
()
{
return
pht
(
'Branch %s'
,
$this
->
getBranchName
());
}
protected
function
newHardpoints
()
{
return
array
(
$this
->
newHardpoint
(
self
::
HARDPOINT_COMMITREF
),
);
}
public
function
setBranchName
(
$branch_name
)
{
$this
->
branchName
=
$branch_name
;
return
$this
;
}
public
function
getBranchName
()
{
return
$this
->
branchName
;
}
public
function
setRefName
(
$ref_name
)
{
$this
->
refName
=
$ref_name
;
return
$this
;
}
public
function
getRefName
()
{
return
$this
->
refName
;
}
public
function
setIsCurrentBranch
(
$is_current_branch
)
{
$this
->
isCurrentBranch
=
$is_current_branch
;
return
$this
;
}
public
function
getIsCurrentBranch
()
{
return
$this
->
isCurrentBranch
;
}
public
function
attachCommitRef
(
ArcanistCommitRef
$ref
)
{
return
$this
->
attachHardpoint
(
self
::
HARDPOINT_COMMITREF
,
$ref
);
}
public
function
getCommitRef
()
{
return
$this
->
getHardpoint
(
self
::
HARDPOINT_COMMITREF
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 8, 07:42 (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
800031
Default Alt Text
ArcanistBranchRef.php (1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment