1 | <?php |
||
49 | class UserToken implements UserTokenInterface |
||
50 | { |
||
51 | /** |
||
52 | * The HybridAuth-User-object |
||
53 | * |
||
54 | * @var HybridAuthUserWrapper $userProfile |
||
55 | */ |
||
56 | protected $user = null; |
||
57 | |||
58 | /** |
||
59 | * The service the user has been authenticated with |
||
60 | * |
||
61 | * @var string $service |
||
62 | */ |
||
63 | protected $service = ''; |
||
64 | |||
65 | /** |
||
66 | * Set the user-object |
||
67 | * |
||
68 | * @param HybridAuthUserWrapper $userProfile The userprofile to use |
||
|
|||
69 | * |
||
70 | * @return UserToken |
||
71 | */ |
||
72 | public function setUser(UserInterface $user) |
||
77 | |||
78 | /** |
||
79 | * Set the service the user has been authenticated with |
||
80 | * |
||
81 | * @param string $service |
||
82 | * |
||
83 | * @return UserToken |
||
84 | */ |
||
85 | public function setService($service) |
||
91 | |||
92 | /** |
||
93 | * Get the ID of the user |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getUID() |
||
101 | |||
102 | /** |
||
103 | * Get the name of the user |
||
104 | * |
||
105 | * @return string |
||
106 | */ |
||
107 | public function getName() |
||
111 | |||
112 | /** |
||
113 | * Get the eMail-Address of the user |
||
114 | * |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getMail() |
||
121 | |||
122 | /** |
||
123 | * Get the language of the user |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getLanguage() |
||
131 | |||
132 | /** |
||
133 | * Get the display-name of the user. |
||
134 | */ |
||
135 | public function getDisplayName() |
||
139 | |||
140 | /** |
||
141 | * Get the service |
||
142 | * |
||
143 | * @see UserTokenInterface::getService |
||
144 | * @return string |
||
145 | */ |
||
146 | public function getService() |
||
150 | |||
151 | /** |
||
152 | * Check whether the user has been authenticated or not |
||
153 | * |
||
154 | * @see UserTokenInterface::isAuthenticated |
||
155 | * @return boolean |
||
156 | */ |
||
157 | public function isAuthenticated() |
||
169 | } |
||
170 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.