1 | <?php namespace nyx\auth\id\identities; |
||
16 | class Twitter extends oauth1\Identity |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritDoc} |
||
20 | */ |
||
21 | protected static $provider = oauth1\providers\Twitter::class; |
||
22 | |||
23 | /** |
||
24 | * @var string The description bound to the Identity. |
||
25 | */ |
||
26 | protected $description; |
||
27 | |||
28 | /** |
||
29 | * @var string The location bound to the Identity. |
||
30 | */ |
||
31 | protected $location; |
||
32 | |||
33 | /** |
||
34 | * @var int The follower count bound to the Identity. |
||
35 | */ |
||
36 | protected $followersCount; |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | */ |
||
41 | public function __construct(auth\interfaces\Credentials $credentials, array $data) |
||
57 | |||
58 | /** |
||
59 | * Returns the description bound to the Identity. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getDescription() : ?string |
||
67 | |||
68 | /** |
||
69 | * Returns the location bound to the Identity. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getLocation() : ?string |
||
77 | |||
78 | /** |
||
79 | * Returns the follower count bound to the Identity. |
||
80 | * |
||
81 | * @return int |
||
82 | */ |
||
83 | public function getFollowersCount() : ?int |
||
87 | } |
||
88 |