1 | <?php |
||
25 | class CommentRepository extends EntityRepository |
||
26 | { |
||
27 | /** |
||
28 | * Finds all the comments of issue given ordering by createdAt. |
||
29 | * The result can be more strict adding user and createAt criteria. |
||
30 | * Can do limit and offset. |
||
31 | * |
||
32 | * @param \Kreta\Component\Issue\Model\Interfaces\IssueInterface $issue The issue |
||
33 | * @param \DateTime $createdAt The created at |
||
|
|||
34 | * @param string $writtenBy The email of user |
||
35 | * @param int $limit The limit |
||
36 | * @param int $offset The offset |
||
37 | * |
||
38 | * @return \Kreta\Component\Comment\Model\Interfaces\CommentInterface[] |
||
39 | */ |
||
40 | public function findByIssue( |
||
66 | |||
67 | /** |
||
68 | * Finds the comments of given id if the user given is its writer. |
||
69 | * |
||
70 | * @param string $commentId The comment id |
||
71 | * @param \Kreta\Component\User\Model\Interfaces\UserInterface $user The user |
||
72 | * |
||
73 | * @return \Kreta\Component\Comment\Model\Interfaces\CommentInterface |
||
74 | */ |
||
75 | public function findByUser($commentId, UserInterface $user) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | protected function getQueryBuilder() |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | protected function getAlias() |
||
98 | } |
||
99 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.