Page MenuHomeDevCentral

PushEvent.php
No OneTemporary

PushEvent.php

<?php
namespace Nasqueron\Notifications\Analyzers\DockerHub;
class PushEvent extends BaseEvent {
/**
* Gets text from payload.
*
* @return string
*/
public function getText() {
$repo = $this->payload->repository->repo_name;
$who = $this->payload->push_data->pusher;
return "New image pushed to Docker Hub registry for $repo by $who";
}
/**
* Gets link from payload.
*
* @return string
*/
public function getLink() {
return $this->payload->repository->repo_url;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jul 29, 13:51 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2753696
Default Alt Text
PushEvent.php (567 B)

Event Timeline