Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103186785
DiffusionCommitHash.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
Fri, Feb 28, 00:54
Size
771 B
Mime Type
text/x-php
Expires
Sun, Mar 2, 00:54 (2 d)
Engine
blob
Format
Raw Data
Handle
24362819
Attached To
rPH Phabricator
DiffusionCommitHash.php
View Options
<?php
final
class
DiffusionCommitHash
extends
Phobject
{
private
$hashType
;
private
$hashValue
;
public
function
setHashValue
(
$hash_value
)
{
$this
->
hashValue
=
$hash_value
;
return
$this
;
}
public
function
getHashValue
()
{
return
$this
->
hashValue
;
}
public
function
setHashType
(
$hash_type
)
{
$this
->
hashType
=
$hash_type
;
return
$this
;
}
public
function
getHashType
()
{
return
$this
->
hashType
;
}
public
static
function
convertArrayToObjects
(
array
$hashes
)
{
$hash_objects
=
array
();
foreach
(
$hashes
as
$hash
)
{
$type
=
$hash
[
0
];
$hash
=
$hash
[
1
];
$hash_objects
[]
=
id
(
new
DiffusionCommitHash
())
->
setHashType
(
$type
)
->
setHashValue
(
$hash
);
}
return
$hash_objects
;
}
}
Event Timeline
Log In to Comment