1 | <?php |
||
21 | class Tumblr implements ProviderInterface |
||
22 | { |
||
23 | const NAME = 'tumblr'; |
||
24 | const SHARE_URL = 'https://www.tumblr.com/share/link?%s'; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function getName() |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function getLink($url, array $options = array()) |
||
38 | { |
||
39 | $options['url'] = $url; |
||
40 | |||
41 | return sprintf(self::SHARE_URL, http_build_query($options, null, '&')); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | * |
||
47 | * @throws UnsupportedOperationException |
||
48 | */ |
||
49 | public function getShares($url) |
||
53 | } |
||
54 |