classes/Report.php
/**
     * Inserts new date and/or athlete to result set
     * @param string $dateKey
     * @param string $name
     */
Inserts new date and/or athlete to result set
@param string $dateKey
@param string $name
Inserts new date and / or athlete to result set @param string $dateKey @param string $name
private function addResultKeys($dateKey, $name) {
        if (!array_key_exists($dateKey, $this->results)) {
            $this->results[$dateKey] = [];
        }
        if (!array_key_exists($name, $this->results[$dateKey])) {
            $this->results[$dateKey][$name] = new Athlete($name);
        }
    }
private function addResultKeys ( $ dateKey , $ name ) { if ( ! array_key_exists ( $ dateKey , $ this -> results ) ) { $ this -> results [ $ dateKey ] = [ ] ; } if ( ! array_key_exists ( $ name , $ this -> results [ $ dateKey ] ) ) { $ this -> results [ $ dateKey ] [ $ name ] = new Athlete ( $ name ) ; } }
Inserts new date and/or athlete to result set
 @param string $dateKey
 @param string $name
Inserts new date and / or athlete to result set @param string $dateKey @param string $name