LOS ANGELES — The Los Angeles Rams have agreed to a five-year extension with wide receiver Brandin Cooks.

The Rams traded their first- and sixth-round picks in the 2018 draft to the New England Patriots for Cooks and a fourth-round pick earlier this year.

Before joining the Rams, Cooks played in 58 regular-season games with 46 starts, and had at least 1,000 yards receiving in each of the past three seasons.

The fifth-year pro has 280 receptions for 3,943 yards and 27 touchdowns, and averages 14.1 yards per reception. He had nine 100-plus yard receiving games in 2016 with the New Orleans Saints.

"Brandin Cooks has shown himself to be a class act on and off the field since the first day he joined our team," Rams coach Sean McVay said in a statement. "He's a proven professional in this league, and signing him to a long-term contract was always our goal. We're excited to keep Brandin in a Rams uniform through 2023."