<?php

namespace App\Modules\Stock;

use App\Contracts\ExternalMediaUrlProvider;
use Mtc\ContentManager\Contracts\Media;

class Motors implements ExternalMediaUrlProvider
{
    public function url(Media $media, string $size): string
    {
        return "https://origin-resizer.images.autoexposure.co.uk/" . ltrim($media->src, '/');
    }
}
