1 | <?php |
||
11 | class RememberMeService |
||
12 | { |
||
13 | /** |
||
14 | * @var SerieTokenMapperInterface |
||
15 | */ |
||
16 | protected $mapper; |
||
17 | |||
18 | /** |
||
19 | * @var ModuleOptions |
||
20 | */ |
||
21 | protected $moduleOptions; |
||
22 | |||
23 | /** |
||
24 | * @var UserValidityInterface |
||
25 | */ |
||
26 | protected $userValidityInterface; |
||
27 | |||
28 | /** |
||
29 | * @param int $userId |
||
30 | * @return SerieTokenInterface |
||
31 | */ |
||
32 | public function createNew($userId) |
||
48 | |||
49 | /** |
||
50 | * @param SerieTokenInterface $serieToken |
||
51 | * @return SerieTokenInterface|null |
||
52 | */ |
||
53 | public function getNextInSerie(SerieTokenInterface $serieToken) |
||
78 | |||
79 | /** |
||
80 | * @return \DateTime |
||
81 | */ |
||
82 | protected function getNewExpireDate() |
||
86 | |||
87 | /** |
||
88 | * @param int $userId |
||
89 | * @param string $serieId |
||
90 | */ |
||
91 | public function removeSerie($userId, $serieId) |
||
98 | |||
99 | /** |
||
100 | * @note Should NOT contain semicolons. |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | private function generateRandom() |
||
108 | |||
109 | /** |
||
110 | * @return SerieTokenMapper |
||
111 | */ |
||
112 | public function getMapper() |
||
116 | |||
117 | /** |
||
118 | * @param SerieTokenMapper $mapper |
||
119 | * @return $this |
||
120 | */ |
||
121 | public function setMapper($mapper) |
||
126 | |||
127 | /** |
||
128 | * @return ModuleOptions |
||
129 | */ |
||
130 | public function getModuleOptions() |
||
134 | |||
135 | /** |
||
136 | * @param ModuleOptions $moduleOptions |
||
137 | * @return $this |
||
138 | */ |
||
139 | public function setModuleOptions($moduleOptions) |
||
144 | |||
145 | /** |
||
146 | * @return UserValidityInterface |
||
147 | */ |
||
148 | public function getUserValidityInterface() |
||
152 | |||
153 | /** |
||
154 | * @param UserValidityInterface $userValidityInterface |
||
155 | * @return $this |
||
156 | */ |
||
157 | public function setUserValidityInterface($userValidityInterface) |
||
162 | } |
||
163 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..