Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F990008
PhabricatorBotMessage.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
PhabricatorBotMessage.php
View Options
<?php
final
class
PhabricatorBotMessage
{
private
$sender
;
private
$command
;
private
$body
;
private
$target
;
private
$public
;
public
function
__construct
()
{
// By default messages are public
$this
->
public
=
true
;
}
public
function
setSender
(
$sender
)
{
$this
->
sender
=
$sender
;
return
$this
;
}
public
function
getSender
()
{
return
$this
->
sender
;
}
public
function
setCommand
(
$command
)
{
$this
->
command
=
$command
;
return
$this
;
}
public
function
getCommand
()
{
return
$this
->
command
;
}
public
function
setBody
(
$body
)
{
$this
->
body
=
$body
;
return
$this
;
}
public
function
getBody
()
{
return
$this
->
body
;
}
public
function
setTarget
(
$target
)
{
$this
->
target
=
$target
;
return
$this
;
}
public
function
getTarget
()
{
return
$this
->
target
;
}
public
function
isPublic
()
{
return
$this
->
public
;
}
public
function
setPublic
(
$is_public
)
{
$this
->
public
=
$is_public
;
return
$this
;
}
public
function
getReplyTo
()
{
if
(
$this
->
public
)
{
return
$this
->
target
;
}
else
{
return
$this
->
sender
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 8:45 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
239001
Default Alt Text
PhabricatorBotMessage.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment