| 1 | <?php |
||
| 16 | class click_controller |
||
| 17 | { |
||
| 18 | /** @var \phpbb\ads\ad\manager */ |
||
| 19 | protected $manager; |
||
| 20 | |||
| 21 | /** @var \phpbb\controller\helper */ |
||
| 22 | protected $helper; |
||
| 23 | |||
| 24 | /** @var \phpbb\request\request */ |
||
| 25 | protected $request; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor |
||
| 29 | * |
||
| 30 | * @param \phpbb\ads\ad\manager $manager Advertisement manager object |
||
| 31 | * @param \phpbb\controller\helper $helper Controller helper object |
||
| 32 | * @param \phpbb\request\request $request Request object |
||
| 33 | */ |
||
| 34 | public function __construct(\phpbb\ads\ad\manager $manager, \phpbb\controller\helper $helper, \phpbb\request\request $request) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Increment clicks for an ad |
||
| 43 | * |
||
| 44 | * @param int $ad_id Advertisement ID |
||
| 45 | * @return \Symfony\Component\HttpFoundation\Response A Symfony Response object |
||
|
|
|||
| 46 | */ |
||
| 47 | public function increment_clicks($ad_id) |
||
| 58 | } |
||
| 59 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.