package nl.jft.logic.match;

import nl.jft.common.Identifiable;
import nl.jft.logic.participant.Participant;

import java.time.LocalDateTime;
import java.util.Objects;

/**
 * A {@code Goal} represents a {@code Goal} made by a {@link nl.jft.logic.participant.Participant} in a {@link Match}.
 * It contains metadata about the {@code Goal} such as who scored it, and when it was scored.
 *
 * @author Lesley
 */
public class Goal implements Identifiable {

    private final int id;
    private final Participant participant;
    private final LocalDateTime time;

    /**
     * Initializes a new Goal using the given id, participant and time.
     *
     * @param id          The {@code id} (dependant on an external system such as a database) of this {@code Goal}.
     * @param participant The {@code participant} who scored this {@code Goal}. Can be {@code null} to indicate the scorer is unknown.
     * @param time        The {@code time} at which {@code Goal} was scored, should not be null.
     */
    public Goal(int id, Participant participant, LocalDateTime time) {
        this.id = id;
        this.participant = participant;
        this.time = Objects.requireNonNull(time);
    }

    @Override
    public int getId() {
        return id;
    }

    public Participant getParticipant() {
        return participant;
    }

    public LocalDateTime getTime() {
        return time;
    }
}

@@ -947,16 +947,21 @@
 t which 
+this 
 %7B@code G
@@ -1268,80 +1268,467 @@
     
-public Participant getParticipant() %7B%0A        return participant;%0A    %7D%0A
+/**%0A     * Gets the %7B@link Participant%7D who scored this %7B@code Goal%7D. May be %7B@code null%7D if it is unknown who scored this %7B@code Goal%7D.%0A     *%0A     * @return The %7B@code Participant%7D who scored this %7B@code Goal%7D.%0A     */%0A    public Participant getParticipant() %7B%0A        return participant;%0A    %7D%0A%0A    /**%0A     * Gets the %7B@code time%7D at which this %7B@code Goal%7D was scored.%0A     *%0A     * @return The %7B@code time%7D at which this %7B@code Goal%7D was scored.%0A     */
 %0A   

Fix javadoc for Goal.