MIAMI — The Miami Marlins acquired the pitching reinforcements they sought in a trade that cost them four players, including two minor leaguers.

Right-handers Andrew Cashner and Colin Rea were sent to Miami by the San Diego Padres in a seven-player deal Friday.

The Marlins, eager to shore up their rotation for a playoff push, also will receive pitching prospect Tayron Guerrero for right-handers Jarred Cosart and Carter Capps and two minor leaguers, pitching prospect Luis Castillo and first baseman Josh Naylor.

Cashner is 4-7 this year with a 4.76 ERA in 16 starts, and has a career record of 30-49 with a 3.73 ERA in seven seasons. Rea, who is in his second major league season, is 5-5 with a 4.98 ERA in 19 games this year.

The prize in the deal for the Padres might be Naylor, 19, a left-handed power hitter taken by the Marlins in the first round of the 2015 draft.

YANKEES: Alex Rodriguez expects to get some playing time at first base during the final two months of the regular season, giving Manager Joe Girardi more flexibility off the bench.

The 41-year-old Rodriguez is hitting just .206 with nine homers in 58 games as a designated hitter and pinch-hitter.

ANGELS: Garrett Richards won’t pitch again this season because of a tear in his right elbow.

Richards last pitched on May 1 and was diagnosed with a torn ulnar collateral five days later. Manager Mike Scioscia said Friday that Richards was done for the year.

ORIOLES: Baltimore signed former Reds right-hander Logan Ondrusek, who has returned from playing in Japan. The 31-year-old Ondrusek went 21-11 with a 3.89 ERA and two saves in 281 games with Cincinnati from 2010 to 2014.

METS: Outfielder Juan Lagares went on the 15-day disabled list and is expected to miss six weeks because of a sprained left thumb that needs surgery. Lagares first hurt his thumb on June 4.