| | |
| | | use JVBase\managers\queue\Operation; |
| | | use JVBase\managers\queue\Progress; |
| | | use JVBase\managers\queue\Result; |
| | | use JVBase\managers\RoleManager; |
| | | use JVBase\managers\Roles; |
| | | use WP_Error; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | |
| | | class InvitationExecutor implements Executor |
| | | { |
| | | protected CustomTable $table; |
| | | protected RoleManager $roleManager; |
| | | protected Roles $roleManager; |
| | | protected int $expiryDays = 14; |
| | | |
| | | public function __construct() |
| | | { |
| | | $this->table = CustomTable::for('invitations'); |
| | | $this->roleManager = new RoleManager(); |
| | | $this->roleManager = new Roles(); |
| | | } |
| | | |
| | | public function execute(Operation $operation, Progress $progress): Result |