File "FsDestination.php"

Full Path: /home/aiclgcwq/photonindustriespvt.com/wp-content/plugins/tenweb-speed-optimizer/vendor/enqueue/fs/FsDestination.php
File size: 690 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare(strict_types=1);

namespace Enqueue\Fs;

use Interop\Queue\Queue;
use Interop\Queue\Topic;

class FsDestination implements Queue, Topic
{
    /**
     * @var \SplFileInfo
     */
    private $file;

    public function __construct(\SplFileInfo $file)
    {
        $this->file = $file;
    }

    public function getFileInfo(): \SplFileInfo
    {
        return $this->file;
    }

    public function getName(): string
    {
        return $this->file->getFilename();
    }

    public function getQueueName(): string
    {
        return $this->file->getFilename();
    }

    public function getTopicName(): string
    {
        return $this->file->getFilename();
    }
}