1 | <?php |
||
9 | class Inbounder |
||
10 | { |
||
11 | /** |
||
12 | * Class constructor |
||
13 | * |
||
14 | * @param App $app |
||
15 | */ |
||
16 | public function __construct($app) |
||
20 | |||
21 | /** |
||
22 | * Create a new instance handler for the given gateway |
||
23 | * |
||
24 | * @param String $name |
||
25 | * @return AbstractHandler |
||
26 | */ |
||
27 | protected function newHandlerInstanceFor($name) |
||
34 | |||
35 | /** |
||
36 | * Return an instance of the gateway manager |
||
37 | * |
||
38 | * @param String $gateway |
||
39 | * @param Request $request |
||
40 | * @return GatewayManager |
||
41 | */ |
||
42 | public function gateway($gateway, Request $request) |
||
46 | } |
||
47 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: