| 1 | <?php |
||
| 9 | /** |
||
| 10 | * The ID of the workout. |
||
| 11 | * |
||
| 12 | * @var WorkoutIdInterface |
||
| 13 | */ |
||
| 14 | private $workoutId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The sport. One of the constants from SportMapperInterface. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $sport; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The start date time of the workout. |
||
| 25 | * |
||
| 26 | * @var \DateTimeImmutable |
||
| 27 | */ |
||
| 28 | private $startDateTime; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param WorkoutIdInterface $workoutId |
||
| 32 | * @param string $sport |
||
| 33 | * @param \DateTimeImmutable $startDateTime |
||
| 34 | */ |
||
| 35 | public function __construct(WorkoutIdInterface $workoutId, string $sport, \DateTimeImmutable $startDateTime) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return WorkoutIdInterface |
||
| 44 | */ |
||
| 45 | public function workoutId(): WorkoutIdInterface |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function sport(): string |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return \DateTimeImmutable |
||
| 60 | */ |
||
| 61 | public function startDateTime(): \DateTimeImmutable |
||
| 65 | } |
||
| 66 |