Initial commit
This commit is contained in:
commit
88945ebafa
16 files changed
+1037
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Rarst\Laps;
|
||||
|
||||
abstract class Laps_Events {
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
protected function is_applicable() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function get() {
|
||||
|
||||
if( $this->is_applicable() )
|
||||
return $this->get_events();
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array()
|
||||
*/
|
||||
abstract protected function get_events();
|
||||
}
|
||||
Reference in new issue
Block a user