# sync-basalam/1.9.2/includes/Admin/Product/Data/Handlers/VariableProductHandler.php

ووسلام – همگام سازی ووکامرس و باسلام, version 1.9.2. 23 lines.

- Page: https://pluginprobe.com/plugins/sync-basalam/1.9.2/code/includes/Admin/Product/Data/Handlers/VariableProductHandler.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.9.2/raw/includes/Admin/Product/Data/Handlers/VariableProductHandler.php
- Modified: 2026-07-08T11:26:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sync-basalam/1.9.2/code/includes/Admin/Product/Data/Handlers/VariableProductHandler.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Admin\Product\Data\Handlers;

use SyncBasalam\Admin\Product\Data\Services\VariantService;

defined('ABSPATH') || exit;

class VariableProductHandler extends SimpleProductHandler
{
    private $variantService;

    public function __construct()
    {
        parent::__construct();
        $this->variantService = new VariantService();
    }

    public function getVariants($product): array
    {
        return $this->variantService->getVariants($product);
    }
}
```
