public function setTypeId($id)
    {
        if (!WorkoutType::exist($id)) {
            throw new EndomondoWorkoutException('Unknown workout type');
        };

        $this->typeId = $id;
        return $this;
    }
public function setTypeId($id)
    {
        if (!WorkoutType::exist($id)) {
            throw new EndomondoWorkoutException('Unknown workout type');
        };

        $this->typeId = $id;
        return $this;
    }
public function setTypeId ( $ id ) { if ( ! WorkoutType :: exist ( $ id ) ) { throw new EndomondoWorkoutException ( 'Unknown workout type' ) ; } ; $ this -> typeId = $ id ; return $ this ; }
Set workout type id.

@param $id integer
@return $this
@throws EndomondoWorkoutException when workout type is unknown.
Set workout type id .