1 | <?php namespace Tuiter; |
||
9 | final class TweetDestroyer |
||
10 | { |
||
11 | /** |
||
12 | * @var TwitterClient |
||
13 | */ |
||
14 | private $client; |
||
15 | |||
16 | /** |
||
17 | * @param TwitterClient $client |
||
18 | */ |
||
19 | public function __construct(TwitterClient $client) |
||
23 | |||
24 | /** |
||
25 | * Factory |
||
26 | * |
||
27 | * @param $consumerKey |
||
28 | * @param $consumerSecret |
||
29 | * @param $token |
||
30 | * @param $tokenSecret |
||
31 | * |
||
32 | * @return self |
||
33 | */ |
||
34 | public static function withParams( |
||
44 | |||
45 | /** |
||
46 | * @param $tweetId |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function destroy($tweetId) |
||
62 | |||
63 | /** |
||
64 | * @param $tweetId |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | private function extractTweetId($tweetId) |
||
72 | } |
||
73 |