Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Document/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ abstract class Thread extends AbstractThread
/**
* Gets the users participating in this conversation
*
* @return array of ParticipantInterface
* @return ParticipantInterface[]
*/
public function getParticipants()
{
Expand Down
8 changes: 4 additions & 4 deletions DocumentManager/ThreadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getParticipantInboxThreadsQueryBuilder(ParticipantInterface $par
* In one word: an inbox.
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findParticipantInboxThreads(ParticipantInterface $participant)
{
Expand Down Expand Up @@ -132,7 +132,7 @@ public function getParticipantSentThreadsQueryBuilder(ParticipantInterface $part
* In one word: an sentbox.
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findParticipantSentThreads(ParticipantInterface $participant)
{
Expand Down Expand Up @@ -192,7 +192,7 @@ public function getParticipantThreadsBySearchQueryBuilder(ParticipantInterface $
*
* @param ParticipantInterface $participant
* @param string $search
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findParticipantThreadsBySearch(participantinterface $participant, $search)
{
Expand All @@ -203,7 +203,7 @@ public function findParticipantThreadsBySearch(participantinterface $participant
* Gets threads created by a participant
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findThreadsCreatedBy(ParticipantInterface $participant)
{
Expand Down
2 changes: 1 addition & 1 deletion Entity/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract class Thread extends BaseThread
/**
* Gets the users participating in this conversation
*
* @return array of ParticipantInterface
* @return ParticipantInterface[]
*/
public function getParticipants()
{
Expand Down
8 changes: 4 additions & 4 deletions EntityManager/ThreadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function getParticipantInboxThreadsQueryBuilder(ParticipantInterface $par
* In one word: an inbox.
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findParticipantInboxThreads(ParticipantInterface $participant)
{
Expand Down Expand Up @@ -168,7 +168,7 @@ public function getParticipantSentThreadsQueryBuilder(ParticipantInterface $part
* In one word: an sentbox.
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findParticipantSentThreads(ParticipantInterface $participant)
{
Expand Down Expand Up @@ -235,7 +235,7 @@ public function getParticipantThreadsBySearchQueryBuilder(ParticipantInterface $
*
* @param ParticipantInterface $participant
* @param string $search
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findParticipantThreadsBySearch(participantinterface $participant, $search)
{
Expand All @@ -248,7 +248,7 @@ public function findParticipantThreadsBySearch(participantinterface $participant
* Gets threads created by a participant
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function findThreadsCreatedBy(ParticipantInterface $participant)
{
Expand Down
8 changes: 5 additions & 3 deletions Model/ThreadInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ function getCreatedAt();
* Sets the date this thread was created at
* Generally the date of the first message
*
* @param DateTime
* @param \DateTime $createdAt
*/
function setCreatedAt(\DateTime $createdAt);

/**
* Gets the users participating in this conversation
*
* @return array of ParticipantInterface
* @return ParticipantInterface[]
*/
function getParticipants();

Expand Down Expand Up @@ -133,7 +133,9 @@ function setIsDeleted($isDeleted);
/**
* Get the participants this participant is talking with.
*
* @return array of ParticipantInterface
* @param ParticipantInterface $participant
*
* @return ParticipantInterface[]
*/
function getOtherParticipants(ParticipantInterface $participant);
}
8 changes: 4 additions & 4 deletions ModelManager/ThreadManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getParticipantInboxThreadsQueryBuilder(ParticipantInterface $participan
* In one word: an inbox.
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
function findParticipantInboxThreads(ParticipantInterface $participant);

Expand All @@ -62,7 +62,7 @@ function getParticipantSentThreadsQueryBuilder(ParticipantInterface $participant
* In one word: an sentbox.
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
function findParticipantSentThreads(ParticipantInterface $participant);

Expand Down Expand Up @@ -102,15 +102,15 @@ function getParticipantThreadsBySearchQueryBuilder(ParticipantInterface $partici
*
* @param ParticipantInterface $participant
* @param string $search
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
function findParticipantThreadsBySearch(ParticipantInterface $participant, $search);

/**
* Gets threads created by a participant
*
* @param ParticipantInterface $participant
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
function findThreadsCreatedBy(ParticipantInterface $participant);

Expand Down
4 changes: 2 additions & 2 deletions Provider/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(ThreadManagerInterface $threadManager, MessageManage
/**
* Gets the thread in the inbox of the current user
*
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function getInboxThreads()
{
Expand All @@ -76,7 +76,7 @@ public function getInboxThreads()
/**
* Gets the thread in the sentbox of the current user
*
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function getSentThreads()
{
Expand Down
4 changes: 2 additions & 2 deletions Provider/ProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ interface ProviderInterface
/**
* Gets the thread in the inbox of the current user
*
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
function getInboxThreads();

/**
* Gets the thread in the sentbox of the current user
*
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
function getSentThreads();

Expand Down
2 changes: 1 addition & 1 deletion Search/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(ParticipantProviderInterface $participantProvider, T
* Finds threads of a participant, matching a given query
*
* @param Query $query
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
public function find(Query $query)
{
Expand Down
2 changes: 1 addition & 1 deletion Search/FinderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface FinderInterface
* Finds threads of a participant, matching a given query
*
* @param Query $query
* @return array of ThreadInterface
* @return ThreadInterface[]
*/
function find(Query $query);

Expand Down