PHP Class Plank\Mediable\SourceAdapters\RemoteUrlAdapter

Adapts a string representing a URL
Author: Sean Fraser ([email protected])
Inheritance: implements Plank\Mediable\SourceAdapters\SourceAdapterInterface
显示文件 Open project: plank/laravel-mediable

Protected Properties

Property Type Description
$source string The source string.

Public Methods

Method Description
__construct ( string $source ) Constructor.
contents ( )
extension ( )
filename ( )
getSource ( )
mimeType ( )
path ( )
size ( )
valid ( )

Private Methods

Method Description
getHeader ( string $key ) : mixed Read the headers of the remote content.

Method Details

__construct() public method

Constructor.
public __construct ( string $source )
$source string

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 string.
protected string $source
return string