<?php


namespace ModulesGarden\ProxmoxAddon\Core\Queue;


use function ModulesGarden\ProxmoxAddon\Core\Helper\queue;

trait ChildrenTrait
{

    /**
     * @param $job
     * @param $arguments
     * @param null $relType
     * @param null $relIsd
     * @param null $customId
     */
    protected function addChildToQueue($job, $arguments, $relType = null, $relId = null, $customId = null)
    {
        queue($job, $arguments, $this->model->id, $relType, $relId, $customId);
    }

}