1 | <?php |
||
23 | class EmailChangeStrategyFactory |
||
24 | { |
||
25 | protected static $map = [ |
||
26 | MailChangeStrategyInterface::TYPE_INSECURE => InsecureEmailChangeStrategy::class, |
||
27 | MailChangeStrategyInterface::TYPE_DEFAULT => DefaultEmailChangeStrategy::class, |
||
28 | MailChangeStrategyInterface::TYPE_SECURE => SecureEmailChangeStrategy::class, |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * @param $strategy |
||
33 | * @param SettingsForm $form |
||
34 | * |
||
35 | * @throws Exception |
||
36 | * @return MailChangeStrategyInterface |
||
37 | * |
||
38 | */ |
||
39 | 1 | public static function makeByStrategyType($strategy, SettingsForm $form) |
|
47 | |||
48 | /** |
||
49 | * @param SettingsForm $form |
||
50 | * |
||
51 | * @return DefaultEmailChangeStrategy |
||
52 | */ |
||
53 | public static function makeDefaultEmailChangeStrategy(SettingsForm $form) |
||
57 | |||
58 | /** |
||
59 | * @param SettingsForm $form |
||
60 | * |
||
61 | * @return InsecureEmailChangeStrategy |
||
62 | */ |
||
63 | public static function makeInsecureEmailChangeStrategy(SettingsForm $form) |
||
67 | |||
68 | /** |
||
69 | * @param SettingsForm $form |
||
70 | * |
||
71 | * @return SecureEmailChangeStrategy |
||
72 | */ |
||
73 | public static function makeSecureEmailChangeStrategy(SettingsForm $form) |
||
77 | } |
||
78 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.