PHP Class Plank\Mediable\SourceAdapters\UploadedFileAdapter

Adapts the UploadedFile class from Symfony Components.
Author: Sean Fraser ([email protected])
Inheritance: implements Plank\Mediable\SourceAdapters\SourceAdapterInterface
Exibir arquivo Open project: plank/laravel-mediable

Protected Properties

Property Type Description
$source Symfony\Component\HttpFoundation\File\UploadedFile The source object.

Public Methods

Method Description
__construct ( Symfony\Component\HttpFoundation\File\UploadedFile $source ) Constructor.
contents ( )
extension ( )
filename ( )
getSource ( )
mimeType ( )
path ( )
size ( )
valid ( )

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\HttpFoundation\File\UploadedFile $source )
$source Symfony\Component\HttpFoundation\File\UploadedFile

contents() public method

public contents ( )

extension() public method

public extension ( )

filename() public method

public filename ( )

getSource() public method

public getSource ( )

mimeType() public method

public mimeType ( )

path() public method

public path ( )

size() public method

public size ( )

valid() public method

public valid ( )

Property Details

$source protected_oe property

The source object.
protected UploadedFile,Symfony\Component\HttpFoundation\File $source
return Symfony\Component\HttpFoundation\File\UploadedFile