Skip to content

Commit

Permalink
Merge pull request #286 from stephane-monnot/feature/fixdocblockissues
Browse files Browse the repository at this point in the history
Improve idea completion
  • Loading branch information
tgalopin authored Aug 26, 2016
2 parents cdb93fe + 0592aa1 commit d33c18a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
9 changes: 5 additions & 4 deletions Entity/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,28 @@
use FOS\MessageBundle\Model\ParticipantInterface;

use FOS\MessageBundle\Model\ThreadMetadata as ModelThreadMetadata;
use FOS\MessageBundle\Model\ThreadMetadata;

abstract class Thread extends BaseThread
{
/**
* Messages contained in this thread
*
* @var Collection of MessageInterface
* @var Collection|MessageInterface[]
*/
protected $messages;

/**
* Users participating in this conversation
*
* @var Collection of ParticipantInterface
* @var Collection|ParticipantInterface[]
*/
protected $participants;

/**
* Thread metadata
*
* @var Collection of ThreadMetadata
* @var Collection|ThreadMetadata[]
*/
protected $metadata;

Expand Down Expand Up @@ -71,7 +72,7 @@ public function getParticipants()
* Since the ORM schema does not map the participants collection field, it
* must be created on demand.
*
* @return ArrayCollection
* @return ArrayCollection|ParticipantInterface[]
*/
protected function getParticipantsCollection()
{
Expand Down
2 changes: 1 addition & 1 deletion Model/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ abstract class Message implements MessageInterface
/**
* Collection of MessageMetadata
*
* @var Collection of MessageMetadata
* @var Collection|MessageMetadata[]
*/
protected $metadata;

Expand Down
6 changes: 3 additions & 3 deletions Model/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ abstract class Thread implements ThreadInterface
/**
* Messages contained in this thread
*
* @var Collection of MessageInterface
* @var Collection|MessageInterface[]
*/
protected $messages;

/**
* Thread metadata
*
* @var Collection of ThreadMetadata
* @var Collection|ThreadMetadata[]
*/
protected $metadata;

/**
* Users participating in this conversation
*
* @var Collection of ParticipantInterface
* @var Collection|ParticipantInterface[]
*/
protected $participants;

Expand Down
1 change: 1 addition & 0 deletions Provider/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace FOS\MessageBundle\Provider;

use FOS\MessageBundle\Model\ThreadInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use FOS\MessageBundle\ModelManager\ThreadManagerInterface;
Expand Down
2 changes: 2 additions & 0 deletions Provider/ProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace FOS\MessageBundle\Provider;

use FOS\MessageBundle\Model\ThreadInterface;

/**
* Provides threads for the current authenticated user
*
Expand Down
1 change: 1 addition & 0 deletions Search/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace FOS\MessageBundle\Search;

use FOS\MessageBundle\Model\ThreadInterface;
use FOS\MessageBundle\ModelManager\ThreadManagerInterface;
use FOS\MessageBundle\Security\ParticipantProviderInterface;

Expand Down
2 changes: 2 additions & 0 deletions Search/FinderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace FOS\MessageBundle\Search;

use FOS\MessageBundle\Model\ThreadInterface;

/**
* Finds threads of a participant, matching a given query
*
Expand Down

0 comments on commit d33c18a

Please sign in to comment.