# sync-basalam/1.10.18/includes/Queue/QueueAbstract.php

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

- Page: https://pluginprobe.com/plugins/sync-basalam/1.10.18/code/includes/Queue/QueueAbstract.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.10.18/raw/includes/Queue/QueueAbstract.php
- Modified: 2026-09-12T12:46:38+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.10.18/code/includes/Queue/QueueAbstract.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Queue;

defined('ABSPATH') || exit;
abstract class QueueAbstract
{
    protected $queueManager;
    public $NEED_SCHEDULE = false;

    public function __construct()
    {
        $this->queueManager = new QueueManager($this->getHookName());
    }

    public function registerHooks()
    {
        add_action($this->getHookName(), [$this, 'handle'], 10, 1);
    }

    protected function getLastRunTimestamp()
    {
        return intval(get_option($this->getHookName() . '_last_run', time()));
    }

    abstract public function handle($args);

    abstract protected function getHookName();
}

```
