HEX
Server: nginx/1.18.0
System: Linux oas2 6.8.0-1039-oracle #40~22.04.1-Ubuntu SMP Wed Oct 29 05:11:00 UTC 2025 aarch64
User: root (0)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: /var/www/ecom/wp-content/plugins/payoneer-checkout/modules/inpsyde/payoneer-wp/src/WpModule.php
<?php

declare (strict_types=1);
namespace Syde\Vendor\Inpsyde\PayoneerForWoocommerce\Wp;

use Syde\Vendor\Inpsyde\Modularity\Module\ExecutableModule;
use Syde\Vendor\Inpsyde\Modularity\Module\FactoryModule;
use Syde\Vendor\Inpsyde\Modularity\Module\ServiceModule;
use Syde\Vendor\Psr\Container\ContainerInterface;
/**
 * The WP core features module.
 */
class WpModule implements ServiceModule, FactoryModule, ExecutableModule
{
    /**
     * @var array<string, callable>
     * @psalm-var array<string, callable(ContainerInterface): mixed>
     */
    protected array $services;
    /**
     * @var array<string, callable>
     * @psalm-var array<string, callable(ContainerInterface): mixed>
     */
    protected array $factories;
    public function __construct()
    {
        $moduleRootDir = dirname(__FILE__, 2);
        $this->services = (require "{$moduleRootDir}/inc/services.php")();
        $this->factories = (require "{$moduleRootDir}/inc/factories.php")();
    }
    /**
     * @inheritDoc
     */
    public function id(): string
    {
        return 'payoneer-wp';
    }
    /**
     * @inheritDoc
     */
    public function services(): array
    {
        return $this->services;
    }
    public function factories(): array
    {
        return $this->factories;
    }
    public function run(ContainerInterface $container): bool
    {
        /** @var callable():void $addTransactionIdFieldSupport */
        $addTransactionIdFieldSupport = $container->get('wp.add_transaction_id_field_support');
        $addTransactionIdFieldSupport();
        /** @var callable():void $addPayoutIdFieldSupport */
        $addPayoutIdFieldSupport = $container->get('wp.add_payout_id_field_support');
        $addPayoutIdFieldSupport();
        return \true;
    }
}