1 | <?php |
||
10 | abstract class AbstractSportMapper implements SportMapperInterface |
||
11 | { |
||
12 | /** |
||
13 | * Get the map between the tracker's sport codes and internal sport codes. |
||
14 | * |
||
15 | * The key should be the internal sport code. |
||
16 | * |
||
17 | * @return array |
||
18 | */ |
||
19 | abstract protected function getMap(); |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function sportFromCode($code) : string |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function codeFromSport($sport) : string |
||
48 | } |
||
49 |