PHP Interface Spatie\MediaLibrary\UrlGenerator\UrlGenerator

Show file Open project: spatie/laravel-medialibrary

Public Methods

Method Description
getUrl ( ) : string Get the url for the profile of a media item.
setConversion ( Conversion $conversion ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
setMedia ( Media $media ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
setPathGenerator ( Spatie\MediaLibrary\PathGenerator\PathGenerator $pathGenerator ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator Set the path generator class.

Method Details

getUrl() public method

Get the url for the profile of a media item.
public getUrl ( ) : string
return string

setConversion() public method

public setConversion ( Conversion $conversion ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$conversion Spatie\MediaLibrary\Conversion\Conversion
return Spatie\MediaLibrary\UrlGenerator\UrlGenerator

setMedia() public method

public setMedia ( Media $media ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$media Spatie\MediaLibrary\Media
return Spatie\MediaLibrary\UrlGenerator\UrlGenerator

setPathGenerator() public method

Set the path generator class.
public setPathGenerator ( Spatie\MediaLibrary\PathGenerator\PathGenerator $pathGenerator ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator
$pathGenerator Spatie\MediaLibrary\PathGenerator\PathGenerator
return Spatie\MediaLibrary\UrlGenerator\UrlGenerator