1 | <?php |
||
10 | class EmailVerificationBrokerManager implements EmailVerificationBrokerFactoryContract |
||
11 | { |
||
12 | /** |
||
13 | * The application instance. |
||
14 | * |
||
15 | * @var \Illuminate\Foundation\Application |
||
16 | */ |
||
17 | protected $app; |
||
18 | |||
19 | /** |
||
20 | * The array of created "drivers". |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $brokers = []; |
||
25 | |||
26 | /** |
||
27 | * Create a new EmailVerificationBroker manager instance. |
||
28 | * |
||
29 | * @param \Illuminate\Foundation\Application $app |
||
30 | */ |
||
31 | public function __construct($app) |
||
35 | |||
36 | /** |
||
37 | * Attempt to get the broker from the local cache. |
||
38 | * |
||
39 | * @param string $name |
||
|
|||
40 | * |
||
41 | * @return \Rinvex\Fort\Contracts\EmailVerificationBrokerContract |
||
42 | */ |
||
43 | public function broker($name = null) |
||
49 | |||
50 | /** |
||
51 | * Resolve the given broker. |
||
52 | * |
||
53 | * @param string $name |
||
54 | * |
||
55 | * @throws \InvalidArgumentException |
||
56 | * |
||
57 | * @return \Rinvex\Fort\Contracts\EmailVerificationBrokerContract |
||
58 | */ |
||
59 | protected function resolve($name) |
||
73 | |||
74 | /** |
||
75 | * Get the email verification broker configuration. |
||
76 | * |
||
77 | * @param string $name |
||
78 | * |
||
79 | * @return array |
||
80 | */ |
||
81 | protected function getConfig($name) |
||
85 | |||
86 | /** |
||
87 | * Get the default email verification broker name. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getDefaultDriver() |
||
95 | |||
96 | /** |
||
97 | * Set the default email verification broker name. |
||
98 | * |
||
99 | * @param string $name |
||
100 | * |
||
101 | * @return void |
||
102 | */ |
||
103 | public function setDefaultDriver($name) |
||
107 | |||
108 | /** |
||
109 | * Dynamically call the default driver instance. |
||
110 | * |
||
111 | * @param string $method |
||
112 | * @param array $parameters |
||
113 | * |
||
114 | * @return mixed |
||
115 | */ |
||
116 | public function __call($method, $parameters) |
||
120 | } |
||
121 |
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.