C# DoorOpen

My Script and i have two errors “A namespace can only contain types and namespace declarations”
I Don’t know why.

using UnityEngine;
using System.Collections;

public class PlayerCollisions : MonoBehaviour {
	bool doorIsOpen = false;
	float doorTimer = 0.0f;
	public float doorOpenSound = 3.0f;
	public AudioClip dooropenSound;
	public AudioClip doorShutSound;
}
void OnControllerColliderHit(ControllerColliderHit hit){
	if(hit.gameObject.tag == "playerDoor" && doorIsOpen == false)
	OpenDoor(hit.gameObject);	
}
void OpenDoor(GameObject door){
	doorIsOpen = true;
	door.audio.PlayOneShot(dooropenSound);
}

You closed your class too early. You need to move the end bracket on line 10 to the end of your file.

using UnityEngine;
 using System.Collections;
 
 public class PlayerCollisions : MonoBehaviour {
     bool doorIsOpen = false;
     float doorTimer = 0.0f;
     public float doorOpenSound = 3.0f;
     public AudioClip dooropenSound;
     public AudioClip doorShutSound;
 
 void OnControllerColliderHit(ControllerColliderHit hit){
     if(hit.gameObject.tag == "playerDoor" && doorIsOpen == false)
     OpenDoor(hit.gameObject);    
 }
 void OpenDoor(GameObject door){
     doorIsOpen = true;
     door.audio.PlayOneShot(dooropenSound);
}
 }