Add boilerplate and initial activity classes.

This commit is contained in:
2016-08-15 18:47:07 +02:00
parent a1a3d12409
commit e6657a95cd
4 changed files with 75 additions and 0 deletions

14
src/pvv/side/activity.php Normal file
View File

@@ -0,0 +1,14 @@
<?php declare(strict_types=1);
namespace pvv\side;
use \DateTime;
interface Activity {
public function getName(); /* : string */
public function getLocation(); /* : Location */
public function getOrganiser(); /* : User */
}

10
src/pvv/side/event.php Normal file
View File

@@ -0,0 +1,10 @@
<?php declare(strict_types=1);
namespace pvv\side;
interface Event extends Activity {
public function getStart(); /* : DateTime */
public function getStop(); /* : DateTime */
}

View File

@@ -0,0 +1,12 @@
<?php declare(strict_types=1);
namespace pvv\side;
use \DateTime;
interface RepeatingActivity extends Activity {
public function getNextEventFrom(DateTime $date) /* : Event */;
public function getPreviousEventFrom(DateTime $date) /* : Event */;
}