1 | <?php |
||
32 | class SubscriptionGateway extends BaseGateway implements GatewayInterface |
||
33 | { |
||
34 | /** |
||
35 | * |
||
36 | * @access private |
||
37 | * @var string $queryAlias |
||
38 | */ |
||
39 | protected $queryAlias = 's'; |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * @access public |
||
44 | * @param \Doctrine\ORM\QueryBuilder $qb |
||
|
|||
45 | * @param Array $parameters |
||
46 | * @return \Doctrine\Common\Collections\ArrayCollection |
||
47 | */ |
||
48 | public function findSubscription(QueryBuilder $qb = null, $parameters = null) |
||
56 | |||
57 | /** |
||
58 | * |
||
59 | * @access public |
||
60 | * @param \Doctrine\ORM\QueryBuilder $qb |
||
61 | * @param Array $parameters |
||
62 | * @return \Doctrine\Common\Collections\ArrayCollection |
||
63 | */ |
||
64 | public function findSubscriptions(QueryBuilder $qb = null, $parameters = null) |
||
72 | |||
73 | /** |
||
74 | * |
||
75 | * @access public |
||
76 | * @param \Doctrine\ORM\QueryBuilder $qb |
||
77 | * @param Array $parameters |
||
78 | * @return int |
||
79 | */ |
||
80 | public function countSubscriptions(QueryBuilder $qb = null, $parameters = null) |
||
98 | |||
99 | /** |
||
100 | * |
||
101 | * @access public |
||
102 | * @param \CCDNForum\ForumBundle\Entity\Subscription $subscription |
||
103 | * @return \CCDNForum\ForumBundle\Model\Component\Gateway\GatewayInterface |
||
104 | */ |
||
105 | public function saveSubscription(Subscription $subscription) |
||
111 | |||
112 | /** |
||
113 | * |
||
114 | * @access public |
||
115 | * @param \CCDNForum\ForumBundle\Entity\Subscription $subscription |
||
116 | * @return \CCDNForum\ForumBundle\Model\Component\Gateway\GatewayInterface |
||
117 | */ |
||
118 | public function updateSubscription(Subscription $subscription) |
||
124 | |||
125 | /** |
||
126 | * |
||
127 | * @access public |
||
128 | * @param \CCDNForum\ForumBundle\Entity\Subscription $subscription |
||
129 | * @return \CCDNForum\ForumBundle\Model\Component\Gateway\GatewayInterface |
||
130 | */ |
||
131 | public function deleteSubscription(Subscription $subscription) |
||
137 | |||
138 | /** |
||
139 | * |
||
140 | * @access public |
||
141 | * @return \CCDNForum\ForumBundle\Entity\Subscription |
||
142 | */ |
||
143 | public function createSubscription() |
||
147 | } |
||
148 |
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.