transform.eulerAngles(0,0); "transform does not contain deffinition for eulerAngles"

I get an error saying: "transform does not contain deffinition for “eulerAngles”…

Heres my code:

using UnityEngine;
using System.Collections;

public class PlayerControl : MonoBehaviour {

	byte playerSpeed = 4;
	byte playerSprint = 2;

	// Update is called once per frame
	void Update () 
	{
		Movement ();
	}

	void Movement()
	{
		if (Input.GetKey (KeyCode.LeftShift)) 
		{
			if (Input.GetKey (KeyCode.D)) 
			{
				transform.Translate(Vector2.right * playerSpeed * playerSprint * Time.deltaTime);
				transform.eulerAngles(0,0);
			}
			if (Input.GetKey (KeyCode.A))  
			{
				transform.Translate(-Vector2.right * playerSpeed * playerSprint * Time.deltaTime);
				transform.eulerAngles(0,180);
			}
		}
		else
		{
			if (Input.GetKey (KeyCode.D)) 
			{
				transform.Translate(Vector2.right * playerSpeed * Time.deltaTime);
				transform.eulerAngles(0,0);
			}
			if (Input.GetKey (KeyCode.A))  
			{
				transform.Translate(-Vector2.right * playerSpeed * Time.deltaTime);
				transform.eulerAngles(0,180);
			}
		}

	}
}

Look at the example for the right syntax