PHP Interface SocialShare\Provider\ProviderInterface

Author: Kévin Dunglas ([email protected])
显示文件 Open project: dunglas/php-socialshare Interface Usage Examples

Public Methods

Method Description
getLink ( string $url, array $options = [] ) : string Gets the share link for the URL.
getName ( ) : string Gets provider's name.
getShares ( string $url ) : integer Gets the number of shares of the URL.

Method Details

getName() public method

Gets provider's name.
public getName ( ) : string
return string

getShares() public method

Gets the number of shares of the URL.
public getShares ( string $url ) : integer
$url string
return integer