1 | <?php |
||
25 | class EmailVerificationBrokerManager implements EmailVerificationBrokerFactoryContract |
||
26 | { |
||
27 | /** |
||
28 | * The application instance. |
||
29 | * |
||
30 | * @var \Illuminate\Foundation\Application |
||
31 | */ |
||
32 | protected $app; |
||
33 | |||
34 | /** |
||
35 | * The array of created "drivers". |
||
36 | * |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $brokers = []; |
||
40 | |||
41 | /** |
||
42 | * Create a new EmailVerificationBroker manager instance. |
||
43 | * |
||
44 | * @param \Illuminate\Foundation\Application $app |
||
45 | */ |
||
46 | public function __construct($app) |
||
50 | |||
51 | /** |
||
52 | * Attempt to get the broker from the local cache. |
||
53 | * |
||
54 | * @param string $name |
||
|
|||
55 | * |
||
56 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
57 | */ |
||
58 | public function broker($name = null) |
||
64 | |||
65 | /** |
||
66 | * Resolve the given broker. |
||
67 | * |
||
68 | * @param string $name |
||
69 | * |
||
70 | * @throws \InvalidArgumentException |
||
71 | * |
||
72 | * @return \Rinvex\Fort\Contracts\EmailVerificationBrokerContract |
||
73 | */ |
||
74 | protected function resolve($name) |
||
88 | |||
89 | /** |
||
90 | * Create a token repository instance based on the given configuration. |
||
91 | * |
||
92 | * @param array $config |
||
93 | * |
||
94 | * @return \Rinvex\Fort\Contracts\EmailVerificationTokenRepositoryContract |
||
95 | */ |
||
96 | protected function createTokenRepository(array $config) |
||
114 | |||
115 | /** |
||
116 | * Get the email verification broker configuration. |
||
117 | * |
||
118 | * @param string $name |
||
119 | * |
||
120 | * @return array |
||
121 | */ |
||
122 | protected function getConfig($name) |
||
126 | |||
127 | /** |
||
128 | * Get the default email verification broker name. |
||
129 | * |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getDefaultDriver() |
||
136 | |||
137 | /** |
||
138 | * Set the default email verification broker name. |
||
139 | * |
||
140 | * @param string $name |
||
141 | * |
||
142 | * @return void |
||
143 | */ |
||
144 | public function setDefaultDriver($name) |
||
148 | |||
149 | /** |
||
150 | * Dynamically call the default driver instance. |
||
151 | * |
||
152 | * @param string $method |
||
153 | * @param array $parameters |
||
154 | * |
||
155 | * @return mixed |
||
156 | */ |
||
157 | public function __call($method, $parameters) |
||
161 | } |
||
162 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.