TAMPA, Fla. — Outfielder Brett Gardner and the New York Yankees agreed Sunday to a four-year contract worth $52 million.

The new pact starts in 2015 and includes a fifth-year club option for $12.5 million and a $2 million buyout. If traded, Gardner would receive $1 million.

“It shows the level of confidence, belief and trust, and the type of player and person he is,” Yankees general manager Brian Cashman said. “We’re excited to know that he’s going to be a part of this team going forward. We’re a better team with Gardy on it, that’s the bottom line. This is a good day for him, and we believe it makes the future for us better.”

Gardner has a $5.6 million, one-year contract for this season. He would have been eligible for free agency after the 2014 season.

“Free agency is something that, it kind of intrigued me, but it also kind of scared me,” Gardner said. “I’ve never been anywhere else. I love it here. I love putting on the pinstripes everyday.”

Also, the Yankees agreed to a minor-league contract with injured closer Andrew Bailey.

Notes

• Colorado’s Jhoulys Chacin, the team’s top right-handed starter a year ago, was shut down because of inflammation in his throwing shoulder. He’s scheduled to undergo an MRI on Monday.

• With Chase Headley out for at least the next two weeks, San Diego manager Bud Black will get a chance to look at a handful of other options at third base.