| 1 | <?php |
||
| 21 | class ThreadProvider implements ThreadProviderInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * A thread repository instance |
||
| 25 | * @var ThreadRepositoryInterface |
||
| 26 | */ |
||
| 27 | protected $threadRepository; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | * |
||
| 32 | * @param ThreadRepositoryInterface $threadRepository |
||
| 33 | */ |
||
| 34 | public function __construct(ThreadRepositoryInterface $threadRepository) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function findThreadById($threadId) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function findThreadForParticipant($threadId, ParticipantInterface $participant) |
||
| 58 | } |
||
| 59 |