Event-getter classes
This commit is contained in:
13
src/pvv/side/events.php
Normal file
13
src/pvv/side/events.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace pvv\side;
|
||||
|
||||
Class Events {
|
||||
public function getAllEvents(){
|
||||
$events = array();
|
||||
$ev = new OnceEvent("Test","Now","Never","sm0xe","Here");
|
||||
$events[0] = $ev;
|
||||
return $events;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
30
src/pvv/side/onceevent.php
Normal file
30
src/pvv/side/onceevent.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace pvv\side;
|
||||
|
||||
Class OnceEvent implements Event {
|
||||
private $name, $start, $end, $org, $loc;
|
||||
public function __construct($name,$start,$end,$org, $loc){
|
||||
$this->name = $name;
|
||||
$this->start = $start;
|
||||
$this->end = $end;
|
||||
$this->org = $org;
|
||||
$this->log = $loc;
|
||||
}
|
||||
public function getStart(){
|
||||
return $this->start;
|
||||
}
|
||||
public function getStop(){
|
||||
return $this->end;
|
||||
}
|
||||
public function getOrganiser(){
|
||||
return $this->org;
|
||||
}
|
||||
public function getLocation(){
|
||||
return $this->loc;
|
||||
}
|
||||
public function getName(){
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user