Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10750792
RepositoryEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1023 B
Referenced Files
None
Subscribers
None
RepositoryEvent.php
View Options
<?php
namespace
Nasqueron\Notifications\Analyzers\GitHub\Events
;
/**
* RepositoryEvent payload analyzer
*
* @link https://developer.github.com/v3/activity/events/types/#repositoryevent
*/
class
RepositoryEvent
extends
Event
{
/**
* Gets description for the payload
*
* @return string
*/
public
function
getDescription
()
{
$message
=
trans
(
'GitHub.EventsDescriptions.RepositoryEvent'
,
[
'repository'
=>
$this
->
payload
->
repository
->
full_name
,
]);
if
(
$this
->
payload
->
repository
->
fork
)
{
$message
.=
trans
(
'GitHub.EventsDescriptions.RepositoryEventFork'
);
}
if
(
$description
=
$this
->
payload
->
repository
->
description
)
{
$message
.=
trans
(
'GitHub.Separator'
);
$message
.=
$description
;
}
return
$message
;
}
/**
* Gets link for the payload
*
* @return string
*/
public
function
getLink
()
{
return
$this
->
payload
->
repository
->
html_url
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jul 27, 20:36 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2830487
Default Alt Text
RepositoryEvent.php (1023 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment