Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547228
PhabricatorGuidanceMessage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorGuidanceMessage.php
View Options
<?php
final
class
PhabricatorGuidanceMessage
extends
Phobject
{
private
$key
;
private
$message
;
private
$severity
=
self
::
SEVERITY_NOTICE
;
private
$priority
=
1000
;
const
SEVERITY_NOTICE
=
'notice'
;
const
SEVERITY_WARNING
=
'warning'
;
public
function
setSeverity
(
$severity
)
{
$this
->
severity
=
$severity
;
return
$this
;
}
public
function
getSeverity
()
{
return
$this
->
severity
;
}
public
function
setKey
(
$key
)
{
$this
->
key
=
$key
;
return
$this
;
}
public
function
getKey
()
{
return
$this
->
key
;
}
public
function
setMessage
(
$message
)
{
$this
->
message
=
$message
;
return
$this
;
}
public
function
getMessage
()
{
return
$this
->
message
;
}
public
function
getSortVector
()
{
return
id
(
new
PhutilSortVector
())
->
addInt
(
$this
->
getPriority
());
}
public
function
setPriority
(
$priority
)
{
$this
->
priority
=
$priority
;
return
$this
;
}
public
function
getPriority
()
{
return
$this
->
priority
;
}
public
function
getSeverityStrength
()
{
$map
=
array
(
self
::
SEVERITY_NOTICE
=>
1
,
self
::
SEVERITY_WARNING
=>
2
,
);
return
idx
(
$map
,
$this
->
getSeverity
(),
0
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:29 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
119608
Default Alt Text
PhabricatorGuidanceMessage.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment