Add boilerplate and initial activity classes.
This commit is contained in:
14
src/pvv/side/activity.php
Normal file
14
src/pvv/side/activity.php
Normal 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
10
src/pvv/side/event.php
Normal 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 */
|
||||
|
||||
}
|
||||
12
src/pvv/side/repeatingactivity.php
Normal file
12
src/pvv/side/repeatingactivity.php
Normal 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 */;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user