Total Complexity | 5 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class Twitter extends AbstractDriver |
||
23 | { |
||
24 | /** |
||
25 | * @var bool|string |
||
26 | */ |
||
27 | public $account = false; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | protected function processShareData() |
||
39 | } |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | protected function buildLink() |
||
46 | { |
||
47 | $link = 'http://twitter.com/share?url={url}&text={description}'; |
||
48 | |||
49 | if ($this->account) { |
||
50 | $this->addUrlParam($link, 'via', '{account}'); |
||
51 | } |
||
52 | |||
53 | return $link; |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | protected function getMetaTags() |
||
66 | ]; |
||
67 | } |
||
69 |