PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / trunk
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification vtrunk
5.12.0 5.13.0 5.13.1 5.11.0 5.10.0 5.9.0 5.8.0 5.8.1 5.7.0 5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 All 47 releases
double-opt-in / src / Subscription / NullSubscriptionGroupResolver.php

NullSubscriptionGroupResolver.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification trunk, at src/Subscription/NullSubscriptionGroupResolver.php

31 lines 599 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Resolver used when no add-on provides subscription groups.
4 *
5 * @package Forge12\DoubleOptIn\Subscription
6 * @since 5.12.0
7 */
8
9 declare( strict_types=1 );
10
11 namespace Forge12\DoubleOptIn\Subscription;
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 final class NullSubscriptionGroupResolver implements SubscriptionGroupResolverInterface {
18
19 public function groupForForm( int $formId, string $formRef = '' ): ?SubscriptionGroup {
20 return null;
21 }
22
23 public function findGroup( string $key ): ?SubscriptionGroup {
24 return null;
25 }
26
27 public function groups(): array {
28 return array();
29 }
30 }
31