1 | <?php |
||
9 | final class WorkoutSummary |
||
10 | { |
||
11 | /** |
||
12 | * The ID of the workout. |
||
13 | * |
||
14 | * @var WorkoutIdInterface |
||
15 | */ |
||
16 | private $workoutId; |
||
17 | |||
18 | /** |
||
19 | * The sport. One of the constants from SportMapperInterface. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | private $sport; |
||
24 | |||
25 | /** |
||
26 | * The start date time of the workout. |
||
27 | * |
||
28 | * @var \DateTimeImmutable |
||
29 | */ |
||
30 | private $startDateTime; |
||
31 | |||
32 | /** |
||
33 | * @param WorkoutIdInterface $workoutId |
||
34 | * @param string $sport |
||
35 | * @param \DateTimeImmutable $startDateTime |
||
36 | */ |
||
37 | public function __construct(WorkoutIdInterface $workoutId, string $sport, \DateTimeImmutable $startDateTime) |
||
43 | |||
44 | /** |
||
45 | * @return WorkoutIdInterface |
||
46 | */ |
||
47 | public function workoutId(): WorkoutIdInterface |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function sport(): string |
||
59 | |||
60 | /** |
||
61 | * @return \DateTimeImmutable |
||
62 | */ |
||
63 | public function startDateTime(): \DateTimeImmutable |
||
67 | } |
||
68 |