1 | <?php |
||
19 | class RefreshTokenManager extends BaseRefreshTokenManager |
||
20 | { |
||
21 | /** |
||
22 | * @var ObjectManager |
||
23 | */ |
||
24 | protected $objectManager; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $class; |
||
30 | 7 | ||
31 | /** |
||
32 | 7 | * @var RefreshTokenRepository |
|
33 | 7 | */ |
|
34 | 7 | protected $repository; |
|
35 | 7 | ||
36 | 7 | /** |
|
37 | * Constructor. |
||
38 | * |
||
39 | * @param ObjectManager $om |
||
40 | * @param string $class |
||
41 | */ |
||
42 | public function __construct(ObjectManager $om, $class) |
||
49 | |||
50 | /** |
||
51 | * @param string $refreshToken |
||
52 | * |
||
53 | 1 | * @return RefreshTokenInterface |
|
54 | */ |
||
55 | 1 | public function get($refreshToken) |
|
59 | |||
60 | /** |
||
61 | * @param string $username |
||
62 | 1 | * |
|
63 | * @return RefreshTokenInterface |
||
64 | 1 | */ |
|
65 | public function getLastFromUsername($username) |
||
69 | 1 | ||
70 | /** |
||
71 | * @param RefreshTokenInterface $refreshToken |
||
72 | * @param bool|true $andFlush |
||
73 | */ |
||
74 | public function save(RefreshTokenInterface $refreshToken, $andFlush = true) |
||
82 | 1 | ||
83 | /** |
||
84 | * @param RefreshTokenInterface $refreshToken |
||
85 | * @param bool $andFlush |
||
86 | */ |
||
87 | public function delete(RefreshTokenInterface $refreshToken, $andFlush = true) |
||
95 | 1 | ||
96 | 1 | /** |
|
97 | * @param \DateTime $datetime |
||
98 | 1 | * @param bool $andFlush |
|
99 | 1 | * |
|
100 | 1 | * @return RefreshTokenInterface[] |
|
101 | */ |
||
102 | 1 | public function revokeAllInvalid($datetime = null, $andFlush = true) |
|
116 | |||
117 | /** |
||
118 | * Returns the RefreshToken fully qualified class name. |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getClass() |
||
126 | } |
||
127 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.