Introduced explicit record interface for event results.
This commit is contained in:
1 parent
ce7cf8eade
commit
48b3383e06
10 files changed
+226
-48
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Rarst\Laps\Record;
|
||||
|
||||
/**
|
||||
* Interface for recorded results of individual event.
|
||||
*/
|
||||
interface Record_Interface {
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function get_name();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function get_description();
|
||||
|
||||
/**
|
||||
* @return float Timestamp of record start.
|
||||
*/
|
||||
public function get_origin();
|
||||
|
||||
/**
|
||||
* @return int Record duration in milliseconds.
|
||||
*/
|
||||
public function get_duration();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function get_category();
|
||||
}
|
||||
Reference in new issue
Block a user