Add URL property to events.

This commit is contained in:
2016-08-26 17:22:11 +02:00
parent 8519c00a57
commit 328a2a31e6
5 changed files with 18 additions and 4 deletions

View File

@@ -17,4 +17,6 @@ abstract class Event {
public abstract function getStop(); /* : DateTimeImmutable */
public abstract function getURL(); /* : string */
}

View File

@@ -23,4 +23,8 @@ class AnimekveldEvent extends Event {
return "Liang Zhu";
}
public function getURL() /* : string */ {
return '/anime/';
}
}

View File

@@ -23,4 +23,8 @@ class BrettspillEvent extends Event {
return "PVV";
}
public function getURL() /* : string */ {
return '/brettspill/';
}
}

View File

@@ -23,4 +23,8 @@ class NerdepitsaEvent extends Event {
return "Anders Christensen";
}
public function getURL() /* : string */ {
return '/nerdepitsa/';
}
}