1 | <?php |
||
6 | class YahooUser implements ResourceOwnerInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var array |
||
10 | */ |
||
11 | protected $response; |
||
12 | |||
13 | |||
14 | /** |
||
15 | * @var image URL |
||
16 | */ |
||
17 | private $imageUrl; |
||
|
|||
18 | |||
19 | /** |
||
20 | * @param array $response |
||
21 | */ |
||
22 | public function __construct(array $response) |
||
26 | |||
27 | public function getId() |
||
31 | |||
32 | /** |
||
33 | * Get perferred display name. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getName() |
||
45 | |||
46 | /** |
||
47 | * Get perferred first name. |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getFirstName() |
||
55 | |||
56 | /** |
||
57 | * Get perferred last name. |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getLastName() |
||
65 | |||
66 | /** |
||
67 | * Get email address. |
||
68 | * |
||
69 | * @return string|null |
||
70 | */ |
||
71 | public function getEmail() |
||
77 | |||
78 | /** |
||
79 | * Get avatar image URL. |
||
80 | * |
||
81 | * @return string|null |
||
82 | */ |
||
83 | public function getAvatar() |
||
87 | |||
88 | public function setImageURL($url) |
||
93 | |||
94 | /** |
||
95 | * Get user data as an array. |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function toArray() |
||
103 | } |
||
104 |
This check marks private properties in classes that are never used. Those properties can be removed.