Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F447993
DiffusionBranchInformation.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
992 B
Referenced Files
None
Subscribers
None
DiffusionBranchInformation.php
View Options
<?php
final
class
DiffusionBranchInformation
{
const
DEFAULT_GIT_REMOTE
=
'origin'
;
private
$name
;
private
$headCommitIdentifier
;
public
function
setName
(
$name
)
{
$this
->
name
=
$name
;
return
$this
;
}
public
function
getName
()
{
return
$this
->
name
;
}
public
function
setHeadCommitIdentifier
(
$head_commit_identifier
)
{
$this
->
headCommitIdentifier
=
$head_commit_identifier
;
return
$this
;
}
public
function
getHeadCommitIdentifier
()
{
return
$this
->
headCommitIdentifier
;
}
public
static
function
newFromConduit
(
array
$dicts
)
{
$branches
=
array
();
foreach
(
$dicts
as
$dict
)
{
$branches
[]
=
id
(
new
DiffusionBranchInformation
())
->
setName
(
$dict
[
'name'
])
->
setHeadCommitIdentifier
(
$dict
[
'headCommitIdentifier'
]);
}
return
$branches
;
}
public
function
toDictionary
()
{
return
array
(
'name'
=>
$this
->
getName
(),
'headCommitIdentifier'
=>
$this
->
getHeadCommitIdentifier
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 5:42 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
66710
Default Alt Text
DiffusionBranchInformation.php (992 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment