1 | <?php |
||
32 | class BoardGateway extends BaseGateway implements GatewayInterface |
||
33 | { |
||
34 | /** |
||
35 | * |
||
36 | * @access private |
||
37 | * @var string $queryAlias |
||
38 | */ |
||
39 | protected $queryAlias = 'b'; |
||
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 findBoard(QueryBuilder $qb = null, $parameters = null) |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @access public |
||
62 | * @param \Doctrine\ORM\QueryBuilder $qb |
||
63 | * @param Array $parameters |
||
64 | * @return \Doctrine\Common\Collections\ArrayCollection |
||
65 | */ |
||
66 | public function findBoards(QueryBuilder $qb = null, $parameters = null) |
||
76 | |||
77 | /** |
||
78 | * |
||
79 | * @access public |
||
80 | * @param \Doctrine\ORM\QueryBuilder $qb |
||
81 | * @param Array $parameters |
||
82 | * @return int |
||
83 | */ |
||
84 | public function countBoards(QueryBuilder $qb = null, $parameters = null) |
||
102 | |||
103 | /** |
||
104 | * |
||
105 | * @access public |
||
106 | * @param \CCDNForum\ForumBundle\Entity\Board $board |
||
107 | * @return \CCDNForum\ForumBundle\Model\Component\Gateway\GatewayInterface |
||
108 | */ |
||
109 | public function saveBoard(Board $board) |
||
115 | |||
116 | /** |
||
117 | * |
||
118 | * @access public |
||
119 | * @param \CCDNForum\ForumBundle\Entity\Board $board |
||
120 | * @return \CCDNForum\ForumBundle\Model\Component\Gateway\GatewayInterface |
||
121 | */ |
||
122 | public function updateBoard(Board $board) |
||
128 | |||
129 | /** |
||
130 | * |
||
131 | * @access public |
||
132 | * @param \CCDNForum\ForumBundle\Entity\Board $board |
||
133 | * @return \CCDNForum\ForumBundle\Model\Component\Gateway\GatewayInterface |
||
134 | */ |
||
135 | public function deleteBoard(Board $board) |
||
141 | |||
142 | /** |
||
143 | * |
||
144 | * @access public |
||
145 | * @return \CCDNForum\ForumBundle\Entity\Board |
||
146 | */ |
||
147 | public function createBoard() |
||
151 | } |
||
152 |
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.