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