Introduced explicit record interface for event results.

This commit is contained in:
Andrey Savchenko committed 2018-02-12 18:30:00 +02:00
1 parent ce7cf8eade
commit 48b3383e06
10 files changed
+226 -48

No files matched your search

+34
View File
@@ -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();
}