Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793004
CommitCommentEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
881 B
Referenced Files
None
Subscribers
None
CommitCommentEvent.php
View Options
<?php
namespace
Nasqueron\Notifications\Analyzers\GitHub\Events
;
/**
* CommitCommentEvent payload analyzer
*
* @link https://developer.github.com/v3/activity/events/types/#commitcommentevent
*/
class
CommitCommentEvent
extends
Event
{
/**
* Gets description for the payload
*
* @return string
*/
public
function
getDescription
()
{
$comment
=
$this
->
payload
->
comment
;
return
trans
(
'GitHub.EventsDescriptions.CommitCommentEvent'
,
[
'author'
=>
$comment
->
user
->
login
,
'commit'
=>
substr
(
$comment
->
commit_id
,
0
,
8
),
'excerpt'
=>
self
::
cut
(
$comment
->
body
),
]
);
}
/**
* Gets link for the payload
*
* @return string
*/
public
function
getLink
()
{
return
$this
->
payload
->
comment
->
html_url
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:39 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2438208
Default Alt Text
CommitCommentEvent.php (881 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment