Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F573972
HeraldEffect.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
HeraldEffect.php
View Options
<?php
final
class
HeraldEffect
extends
Phobject
{
private
$objectPHID
;
private
$action
;
private
$target
;
private
$rule
;
private
$reason
;
public
function
setObjectPHID
(
$object_phid
)
{
$this
->
objectPHID
=
$object_phid
;
return
$this
;
}
/**
* @return string PHID of the object that Herald is applied on
*/
public
function
getObjectPHID
()
{
return
$this
->
objectPHID
;
}
public
function
setAction
(
$action
)
{
$this
->
action
=
$action
;
return
$this
;
}
/**
* @return string ACTIONCONST of the HeraldAction
*/
public
function
getAction
()
{
return
$this
->
action
;
}
public
function
setTarget
(
$target
)
{
$this
->
target
=
$target
;
return
$this
;
}
/**
* @return array|null
*/
public
function
getTarget
()
{
return
$this
->
target
;
}
public
function
setRule
(
HeraldRule
$rule
)
{
$this
->
rule
=
$rule
;
return
$this
;
}
/**
* @return HeraldRule
*/
public
function
getRule
()
{
return
$this
->
rule
;
}
public
function
setReason
(
$reason
)
{
$this
->
reason
=
$reason
;
return
$this
;
}
/**
* @return string Reason why Herald effect was applied, for example
* "Conditions were met for H123 RuleName"
*/
public
function
getReason
()
{
return
$this
->
reason
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 6:15 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
125190
Default Alt Text
HeraldEffect.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment