Skip to content

Commit cdb93fe

Browse files
authored
Merge pull request #285 from stephane-monnot/feature/fixdocblockissues
Fix php docblock issues
2 parents f824ef8 + 342c31a commit cdb93fe

File tree

10 files changed

+25
-23
lines changed

10 files changed

+25
-23
lines changed

Document/Thread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ abstract class Thread extends AbstractThread
5757
/**
5858
* Gets the users participating in this conversation
5959
*
60-
* @return array of ParticipantInterface
60+
* @return ParticipantInterface[]
6161
*/
6262
public function getParticipants()
6363
{

DocumentManager/ThreadManager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getParticipantInboxThreadsQueryBuilder(ParticipantInterface $par
9898
* In one word: an inbox.
9999
*
100100
* @param ParticipantInterface $participant
101-
* @return array of ThreadInterface
101+
* @return ThreadInterface[]
102102
*/
103103
public function findParticipantInboxThreads(ParticipantInterface $participant)
104104
{
@@ -132,7 +132,7 @@ public function getParticipantSentThreadsQueryBuilder(ParticipantInterface $part
132132
* In one word: an sentbox.
133133
*
134134
* @param ParticipantInterface $participant
135-
* @return array of ThreadInterface
135+
* @return ThreadInterface[]
136136
*/
137137
public function findParticipantSentThreads(ParticipantInterface $participant)
138138
{
@@ -192,7 +192,7 @@ public function getParticipantThreadsBySearchQueryBuilder(ParticipantInterface $
192192
*
193193
* @param ParticipantInterface $participant
194194
* @param string $search
195-
* @return array of ThreadInterface
195+
* @return ThreadInterface[]
196196
*/
197197
public function findParticipantThreadsBySearch(participantinterface $participant, $search)
198198
{
@@ -203,7 +203,7 @@ public function findParticipantThreadsBySearch(participantinterface $participant
203203
* Gets threads created by a participant
204204
*
205205
* @param ParticipantInterface $participant
206-
* @return array of ThreadInterface
206+
* @return ThreadInterface[]
207207
*/
208208
public function findThreadsCreatedBy(ParticipantInterface $participant)
209209
{

Entity/Thread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ abstract class Thread extends BaseThread
5858
/**
5959
* Gets the users participating in this conversation
6060
*
61-
* @return array of ParticipantInterface
61+
* @return ParticipantInterface[]
6262
*/
6363
public function getParticipants()
6464
{

EntityManager/ThreadManager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function getParticipantInboxThreadsQueryBuilder(ParticipantInterface $par
117117
* In one word: an inbox.
118118
*
119119
* @param ParticipantInterface $participant
120-
* @return array of ThreadInterface
120+
* @return ThreadInterface[]
121121
*/
122122
public function findParticipantInboxThreads(ParticipantInterface $participant)
123123
{
@@ -168,7 +168,7 @@ public function getParticipantSentThreadsQueryBuilder(ParticipantInterface $part
168168
* In one word: an sentbox.
169169
*
170170
* @param ParticipantInterface $participant
171-
* @return array of ThreadInterface
171+
* @return ThreadInterface[]
172172
*/
173173
public function findParticipantSentThreads(ParticipantInterface $participant)
174174
{
@@ -235,7 +235,7 @@ public function getParticipantThreadsBySearchQueryBuilder(ParticipantInterface $
235235
*
236236
* @param ParticipantInterface $participant
237237
* @param string $search
238-
* @return array of ThreadInterface
238+
* @return ThreadInterface[]
239239
*/
240240
public function findParticipantThreadsBySearch(participantinterface $participant, $search)
241241
{
@@ -248,7 +248,7 @@ public function findParticipantThreadsBySearch(participantinterface $participant
248248
* Gets threads created by a participant
249249
*
250250
* @param ParticipantInterface $participant
251-
* @return array of ThreadInterface
251+
* @return ThreadInterface[]
252252
*/
253253
public function findThreadsCreatedBy(ParticipantInterface $participant)
254254
{

Model/ThreadInterface.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ function getCreatedAt();
8080
* Sets the date this thread was created at
8181
* Generally the date of the first message
8282
*
83-
* @param DateTime
83+
* @param \DateTime $createdAt
8484
*/
8585
function setCreatedAt(\DateTime $createdAt);
8686

8787
/**
8888
* Gets the users participating in this conversation
8989
*
90-
* @return array of ParticipantInterface
90+
* @return ParticipantInterface[]
9191
*/
9292
function getParticipants();
9393

@@ -133,7 +133,9 @@ function setIsDeleted($isDeleted);
133133
/**
134134
* Get the participants this participant is talking with.
135135
*
136-
* @return array of ParticipantInterface
136+
* @param ParticipantInterface $participant
137+
*
138+
* @return ParticipantInterface[]
137139
*/
138140
function getOtherParticipants(ParticipantInterface $participant);
139141
}

ModelManager/ThreadManagerInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function getParticipantInboxThreadsQueryBuilder(ParticipantInterface $participan
4040
* In one word: an inbox.
4141
*
4242
* @param ParticipantInterface $participant
43-
* @return array of ThreadInterface
43+
* @return ThreadInterface[]
4444
*/
4545
function findParticipantInboxThreads(ParticipantInterface $participant);
4646

@@ -62,7 +62,7 @@ function getParticipantSentThreadsQueryBuilder(ParticipantInterface $participant
6262
* In one word: an sentbox.
6363
*
6464
* @param ParticipantInterface $participant
65-
* @return array of ThreadInterface
65+
* @return ThreadInterface[]
6666
*/
6767
function findParticipantSentThreads(ParticipantInterface $participant);
6868

@@ -102,15 +102,15 @@ function getParticipantThreadsBySearchQueryBuilder(ParticipantInterface $partici
102102
*
103103
* @param ParticipantInterface $participant
104104
* @param string $search
105-
* @return array of ThreadInterface
105+
* @return ThreadInterface[]
106106
*/
107107
function findParticipantThreadsBySearch(ParticipantInterface $participant, $search);
108108

109109
/**
110110
* Gets threads created by a participant
111111
*
112112
* @param ParticipantInterface $participant
113-
* @return array of ThreadInterface
113+
* @return ThreadInterface[]
114114
*/
115115
function findThreadsCreatedBy(ParticipantInterface $participant);
116116

Provider/Provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct(ThreadManagerInterface $threadManager, MessageManage
6464
/**
6565
* Gets the thread in the inbox of the current user
6666
*
67-
* @return array of ThreadInterface
67+
* @return ThreadInterface[]
6868
*/
6969
public function getInboxThreads()
7070
{
@@ -76,7 +76,7 @@ public function getInboxThreads()
7676
/**
7777
* Gets the thread in the sentbox of the current user
7878
*
79-
* @return array of ThreadInterface
79+
* @return ThreadInterface[]
8080
*/
8181
public function getSentThreads()
8282
{

Provider/ProviderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ interface ProviderInterface
1212
/**
1313
* Gets the thread in the inbox of the current user
1414
*
15-
* @return array of ThreadInterface
15+
* @return ThreadInterface[]
1616
*/
1717
function getInboxThreads();
1818

1919
/**
2020
* Gets the thread in the sentbox of the current user
2121
*
22-
* @return array of ThreadInterface
22+
* @return ThreadInterface[]
2323
*/
2424
function getSentThreads();
2525

Search/Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(ParticipantProviderInterface $participantProvider, T
3636
* Finds threads of a participant, matching a given query
3737
*
3838
* @param Query $query
39-
* @return array of ThreadInterface
39+
* @return ThreadInterface[]
4040
*/
4141
public function find(Query $query)
4242
{

Search/FinderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface FinderInterface
1313
* Finds threads of a participant, matching a given query
1414
*
1515
* @param Query $query
16-
* @return array of ThreadInterface
16+
* @return ThreadInterface[]
1717
*/
1818
function find(Query $query);
1919

0 commit comments

Comments
 (0)