.github
2 years ago
CannotObtainLockException.php
4 years ago
FsConnectionFactory.php
4 years ago
FsConsumer.php
4 years ago
FsContext.php
4 years ago
FsDestination.php
4 years ago
FsMessage.php
4 years ago
FsProducer.php
4 years ago
LICENSE
4 years ago
LegacyFilesystemLock.php
4 years ago
Lock.php
4 years ago
README.md
2 years ago
composer.json
2 years ago
FsDestination.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Enqueue\Fs; |
| 6 | |
| 7 | use Interop\Queue\Queue; |
| 8 | use Interop\Queue\Topic; |
| 9 | |
| 10 | class FsDestination implements Queue, Topic |
| 11 | { |
| 12 | /** |
| 13 | * @var \SplFileInfo |
| 14 | */ |
| 15 | private $file; |
| 16 | |
| 17 | public function __construct(\SplFileInfo $file) |
| 18 | { |
| 19 | $this->file = $file; |
| 20 | } |
| 21 | |
| 22 | public function getFileInfo(): \SplFileInfo |
| 23 | { |
| 24 | return $this->file; |
| 25 | } |
| 26 | |
| 27 | public function getName(): string |
| 28 | { |
| 29 | return $this->file->getFilename(); |
| 30 | } |
| 31 | |
| 32 | public function getQueueName(): string |
| 33 | { |
| 34 | return $this->file->getFilename(); |
| 35 | } |
| 36 | |
| 37 | public function getTopicName(): string |
| 38 | { |
| 39 | return $this->file->getFilename(); |
| 40 | } |
| 41 | } |
| 42 |