Heard sought the order against the actor because she claimed he has assaulted her in the past, according to a court official.

Amber Heard was granted a restraining order against her husband, Johnny Depp, on Friday, a Los Angeles County Superior Court official told The Hollywood Reporter.

Heard sought the order against the actor because she claimed he has assaulted her in the past, according to the court official. The judge granted the order "partially," or portions of it, the court official said.

In her request for the restraining order, Heard said Depp threw her cellphone at her during a fight Saturday, the court filing stated, according to The Associated Press. The phone hit her face, causing injury to her cheek and eye.

The celebrity gossip site TMZposted a picture of an injured Heard allegedly taken Saturday.

Heard told the court that Depp -- currently out of the country performing with his band, Hollywood Vampires -- pulled her hair, hit her and violently grabbed her face during their Saturday argument, during which, she claims, Depp was intoxicated and high, according to the AP.

"I live in fear that Johnny will return to (our house) unannounced to terrorize me, physically and emotionally," Heard wrote in a sworn declaration, cited by the AP.

The accusations and restraining order come on the heels of Heard seeking a divorce from Depp earlier in the week after 15 months of marriage.

A Los Angeles police spokesman said he was unaware of any domestic violence investigation against Depp. Attorneys for both Depp and Heard declined to comment. Publicists for the actors did not respond to a request for comment.

Depp's latest film, Disney's Alice Through the Looking Glass, opened in theaters on Friday, beginning the traditionally lucrative Memorial Day holiday weekend at the box office.