Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93805548
PhabricatorFerretMetadata.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
Sun, Dec 1, 15:57
Size
807 B
Mime Type
text/x-php
Expires
Tue, Dec 3, 15:57 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
22707867
Attached To
rPH Phabricator
PhabricatorFerretMetadata.php
View Options
<?php
final
class
PhabricatorFerretMetadata
extends
Phobject
{
private
$phid
;
private
$engine
;
private
$relevance
;
public
function
setEngine
(
$engine
)
{
$this
->
engine
=
$engine
;
return
$this
;
}
public
function
getEngine
()
{
return
$this
->
engine
;
}
public
function
setPHID
(
$phid
)
{
$this
->
phid
=
$phid
;
return
$this
;
}
public
function
getPHID
()
{
return
$this
->
phid
;
}
public
function
setRelevance
(
$relevance
)
{
$this
->
relevance
=
$relevance
;
return
$this
;
}
public
function
getRelevance
()
{
return
$this
->
relevance
;
}
public
function
getRelevanceSortVector
()
{
$engine
=
$this
->
getEngine
();
return
id
(
new
PhutilSortVector
())
->
addInt
(
$engine
->
getObjectTypeRelevance
())
->
addInt
(-
$this
->
getRelevance
());
}
}
Event Timeline
Log In to Comment