Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793076
PhabricatorPayloadEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorPayloadEvent.php
View Options
<?php
namespace
Nasqueron\Notifications\Events
;
use
Nasqueron\Notifications\Events\Event
;
use
Nasqueron\Notifications\Phabricator\PhabricatorStory
;
use
Illuminate\Queue\SerializesModels
;
class
PhabricatorPayloadEvent
extends
Event
{
use
SerializesModels
;
/**
* The gate door which receives the request
* @var string
*/
public
$door
;
/**
* The Phabricator instance
* @var string
*/
protected
$instance
;
/**
* The raw payload
*/
public
$payload
;
/**
* The story sent by the request
* @var PhabricatorStory
*/
public
$story
;
/**
* Gets story from the request
*
* @param string $instance The Phabricator instance URL
* @return PhabricatorStory
*/
protected
function
getStory
()
{
return
PhabricatorStory
::
loadFromArray
(
$this
->
instance
,
$this
->
payload
);
}
/**
* Creates a new event instance.
*
* @param string $door
* @param string $instance The Phabricator instance URL
* @param stdClass $payload
*/
public
function
__construct
(
$door
,
$instance
,
$payload
)
{
$this
->
door
=
$door
;
$this
->
instance
=
$instance
;
$this
->
payload
=
$payload
;
$this
->
story
=
$this
->
getStory
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:39 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2437075
Default Alt Text
PhabricatorPayloadEvent.php (1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment