Skip to content

Commit eaed5cd

Browse files
committed
Add QueueAwareInterface
1 parent 9f621b6 commit eaed5cd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/QueueAwareInterface.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace DominionEnterprises\Mongo;
4+
5+
/**
6+
* Interface for QueueInterface dependency injection.
7+
*/
8+
interface QueueAwareInterface
9+
{
10+
/**
11+
* Returns the QueueInterface instance.
12+
*
13+
* @return QueueInterface
14+
*/
15+
public function getQueue();
16+
17+
/**
18+
* Sets the QueueInterface instance.
19+
*
20+
* @param QueueInterface $queue
21+
*
22+
* @return QueueAwareInterface
23+
*/
24+
public function setQueue(QueueInterface $queue);
25+
}

0 commit comments

Comments
 (0)