Page MenuHomeDevCentral

RepositoryEvent.php
No OneTemporary

RepositoryEvent.php

<?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

Mime Type
text/x-php
Expires
Tue, Jul 29, 13:48 (6 m, 20 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2830487
Default Alt Text
RepositoryEvent.php (1023 B)

Event Timeline