Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class VariableResolver |
||
15 | { |
||
16 | /** |
||
17 | * @var Collection |
||
18 | */ |
||
19 | protected $emails; |
||
20 | |||
21 | /** |
||
22 | * VariableResolver constructor. |
||
23 | * |
||
24 | * @param Collection $emails |
||
25 | */ |
||
26 | final public function __construct(Collection $emails) |
||
27 | { |
||
28 | $this->emails = $emails; |
||
29 | |||
30 | if (method_exists($this, 'boot')) { |
||
31 | app()->call([$this, 'boot']); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Resolver given variable. |
||
37 | * |
||
38 | * @param string $variable |
||
39 | * @param string $email |
||
40 | * |
||
41 | * @return array |
||
42 | * |
||
43 | * @throws Exception |
||
44 | */ |
||
45 | final public function resolve(string $variable, string $email): array |
||
64 | ]; |
||
65 | } |
||
66 | } |